|
i meant u don't need to export class, only one C function to create an instance of the class object, COM does this. COM uses DLLGetClassObject to create an instance of the factory method interfaces.
say,
BOOL CreateDLLClassInstance(void **ppClassObj); // exported C function to create an instance note type is void ** and no class declaration is visibly exported.
lhayes00 wrote: If an object of a class is created from an exported function, surely all functionality would need to be exported using C style functions
this exported function is not part of the class, the function is outside the namespace of the class.
lhayes00 wrote: where the object pointer is treated as a handle
just typecast the HANDLE to your object class type.
|
|
|
|
|
Ahh rite now I see what you mean!
Thank you for clarifying, I am sure that I can put this to use
Lea Hayes
|
|
|
|
|
Depending on the design of your library, a good solution would be to make C entry points into it, using a technigue called "flattening[^]", thus exposing the C interface while keeping the C++ internal implementation.
|
|
|
|
|
Cheers! this is an interesting solution, I have read through the page you linked me to and I think this is something which I can apply in areas of my application.
Thanks for your help!
Lea Hayes
|
|
|
|
|
hi, i have created three edit controls with that when i press tab for the first one the focus should go to the second and if the tab is pressed in the second edit control it should go to the thrid...
i can get the window on which the tab is pressed but i want to find the next control so that i can send the focus to that... i dont want to use more if's to get this... is there a function like getnextwindow or child window... ?
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
What are you talking about? Can't you simply set the tab order at design time?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i am using Dev-C++ IDE... and using C style for the code... so is that what you need to know? anyway... as you have had your personal comment as no one can give a wiser advice than myself... let me try...
actually i wasn't in a mood to dig deeper... here i go...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Seriously though, I've never used Dev-C++ IDE. Here we assume the OP is using Visual Studio (for sure) and even MFC(sometimes), unless the OP specifies he's working on Win32.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thank you for your concern and for replying Mr. Rajesh R Subramanian, anyway i have to try that and will contact codeproject or you for further discussion if needed... do you have any idea about the dwContext parameter in the wininet ftp InternetConnect function or i will come up with the code of what has been done till now and by then it should be easy for discussion... thank you.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
It would be easier to just set the tab order when you build the window. For those designed with the IDE, press ctrl-d and set the order. For windows built by hand, the order you add the controls to the window is the tab order.
Judy
|
|
|
|
|
thank you for your consideration... i am using DEV C++ IDE... anyway let me try someother way...
i am using C style of coding which is not MFC or cpp. probably its just a silly question which shoudln't have been asked... fine...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Jayapal Chandran wrote: probably its just a silly question which shoudln't have been asked.
No it's not. Given that you're not using a MS IDE, you can set tab order by the order in which you add controls to your window as you create the window. The order in which controls are added is the tab order. If you're building the window in your DEV C++ IDE, there's going to be some way to specify it - either through the IDE or just go in and manually edit the generated resource script file to order the controls.
Judy
|
|
|
|
|
hi, till now i have done everything only with the coding and i didnt use the ide features except adding the needed libraries like ws2.lib and wininet... thank you... and i will try your way...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
I just installed Dev C++, it seems it doesnot have resource editor, u might have coded rc files or used external editor or coded in C++ right to add ur ui controls?
I think in either way the WS_TABSTOP style is not set, if this style is set for the control, ur requirement is automatically handled.
modified on Saturday, February 16, 2008 4:47 AM
|
|
|
|
|
thank you Mr. Rajkumar... i am again on it... actually i was searching with the CBX styles instead of window styles...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
according to the other programmers reply i should use WS_TABSTOP ... since i am using dev c++ i use to create menus while runtime and i didnt use resources... anyway thank you for your reply Mrs Judy
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Hi,
U can use the Tab order at the dialog Template design time.
The API for enumearting child windows is EnumChildWindows()
Thanks
Prasanth Vijay
|
|
|
|
|
Hello Friends
Any idea how we can read Current Theme Name in Vista?
and let's suppose we have read it then how to set it after changing the read Theme Name.
Regards
|
|
|
|
|
I have a Windows service in which I need to detect the Windows shutdown event and, depending on what kind of processing I am doing at the time, delay the shutdown for a few seconds until my processing is complete. Can that be done?
Any help appreciated.
|
|
|
|
|
Royce Fickling wrote: I have a Windows service in which I need to detect the Windows shutdown event
Services get a Stop notification. Is there some reason that notification is not sufficient to your needs?
led mike
|
|
|
|
|
Royce Fickling wrote: Can that be done?
Only if you are interested in SERVICE_CONTROL_STOP .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
At this point when I go get a cup of coffee if feels like you are following me
led mike
|
|
|
|
|
Nah. I usually open a dozen or so browser windows with various CP threads. By the time I get around to answering the last few, anywhere from 5-25 minutes may have passed since the OP's question, thus I'm usually repeating what has already been said.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: I usually open a dozen or so browser windows with various CP threads.
How do you do that? Can you email the code?
led mike
|
|
|
|
|
Is it urgent?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|