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?
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.
«_Superman_» I love work. It gives me something to do between weekends.
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.
Preferably compile it as a static library and link it in C++ project
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.
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
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?
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
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.
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.