|
|
sir i have tried them but i'm not getting any idea...also my doubt is that whether the insert query only satisfies string variables?
|
|
|
|
|
Hello all,
I am using OnShowWindow() in CDialogs to do somethings when a dialog become visible after it was hidden.
I want to do the same thing for a property page and then calling the function OnShowWindow() doesn't do anyhing, because this function doesn't get called when the property page becomes visible after it was hidden.
I can use OnPaint() and that works fine. But i want to avoid using OnPaint() as that get called for so many reasons.
Where as OnShowWindow() is exclusive when a window is displayed after it was initially hidden.
So is there a different function i can use in CPropertyPage when it becomes visible?
Thanks in advance.
|
|
|
|
|
|
This function get's called only when the Propertypage is displayed, like while navigating through the tabs.
I want it to be called when i go from ShowWindow(false) to ShowWindow(true)
i.e., when the property page is displayed after it was hidden. And this function doesn't get called in that scenario.
And you said override this, can you explain how to do that? Will that work for my scenario?
|
|
|
|
|
I'm not completely clear of your requirement, but I guess my earlier solution should work for you.
What I mean by override is to create a new class that derives from CPropertyPage , write the method OnSetActive in this class and use this class to create the property pages.
|
|
|
|
|
Hi guys. I like to make a parser for my own programming language in c++.can anybody help me. Thank you
|
|
|
|
|
A programming language requires more than just a 'parser'.
If you are serious then you should buy the Dragon book. You might want to look into lexx and yacc as well (there are books for those.)
If you just want to mess around then code it. If you get serious then the first time experience will provide a constrast for later work.
Other than that you define the syntax before you start coding.
|
|
|
|
|
You might write yourself from scratch or use Boost.Spirit[^] (or, if you prefer a C -like approach, the classical tools Flex[^] and Bison[^]).
Veni, vidi, vici.
|
|
|
|
|
Hello
I have a c#.net project which I need to incorporate into c++ project. Preferably compile it as a static library and link it in C++ project.
If this is possible please guide me how to go ahead with this. I came across this link but I found it difficult to understand the procedure. Secondly my application is a desktop based and not client server based. Please learned people help me.
Thanks
|
|
|
|
|
|
|
hrishtech wrote: Preferably compile it as a static library and link it in C++ project
Why?
It is probably easier to do the following
1. Create a C# executable
2. Provide a communications idiom which is either file based, stdio based or socket based.
3. Create your C++ code such that it runs the C# exe and then usse 2 to talk to it.
The benefit of the above is that it easier to code and debug.
|
|
|
|
|
jschell wrote: Provide a communications idiom which is either file based, stdio based or socket based.
being a IPC guy, I will not support this, since all the above mentioned method has its on shortcomings!. it better to use COM instead if you want synchronous communication. though you can achieve same with mentioned technique, however you have to rely on synchronous objects etc.
Recommended technique is already mentioned by SuperMan . however it depend on your project demand. what they actually want. since for IPC technique you have create framework in both executable to send and receive data, constantly watch on executables running status etc etc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: it better to use COM instead if you want synchronous communication.
The stdio and sockets specifically support synchronous communications. Or asynchronous.
Pretty sure one can do asynchronous with COM as well, so that has nothing to do with why COM would be a better choice.
|
|
|
|
|
Hi,
Sorry for delay in replying. I am actually developing application based on wxWidgets and I want to link a C# based dll into my application. I tried a small console based sample example and it worked fine. But when I actually tried to link into wxWidgets application I got some warnings and my app crashes before it starts.
I was getting following warning
lnk4248 unresolved typeref token
and also the following warning. I posted the query here. Though this is not a wxWidget forum, still I would like to ask whether there is a way to link C# based DLL into wxWidgets application?
Thanks
|
|
|
|
|
Hi every senior
now I have a hardware address(Ex:super IO, 2E),and I want to access the Super IO Register status under the windows 7,
so,is there any way to communicate with hardware by using any function or API?
Thank you all guys
BR
|
|
|
|
|
not sure what issue you're facing - the Super IO Chip/ChipSet (most likely) is used to communicate with serial ports - but that being said, you go through several layers of abstraction 'above' that Chipset layer to talk to serial ports
What exactly are you trying to accomplish ?
'g'
|
|
|
|
|
Thanks for your replying, Mr.Garth J Lancaster
Well...my job is Embedded Controller(EC)(is similar with Super IO)Firmware.So I can edit the register value in the source code, but now I want to access the register value in the different Operating System,In Dos system, I can use outp()and inp() function to read write value to register, but in the Windows, I don't know what function or API should I used.
Sorry, and forgive my poor English.
BR 
|
|
|
|
|
|
Thanks a lot. 
|
|
|
|
|
Hi,use MFC,I want to konw if the disk space is enough to write a file,How can get the informaion
|
|
|
|
|
|
Hello all, I'm trying to get back into programming. Studied C years ago. I've Perl in work for the last 10 years or so, but want to turn to C/C++/C#? Would like to do some Windows development and possibly some Android or iOS development in the future.
I have my old C book from school by Kernighan and Ritchie.
I've installed the Eclipse with CDT and MinGW. Hadn't gotten anything to compile yet, I think it's just a path issue with gcc.
Just wanted some feedback here. Am I on the right track? Is Eclipse ok, thought about using MS Visual Studio Express.
TIA
|
|
|
|
|