|
I have gwiopm.sys file get from internet and with this .sys file can use in / out asm command and sent data to parallel port from application Win32 , now i want send my data to parallel port from windows X64.
|
|
|
|
|
I was wondering if there's any way to manually create a modal window without the use of the DialogBox function and it's variations. And i'm not talking about manually creating the dialog with DLGTEMPLATE, but rather applying modal properties to an already created window.
Does anybody have an idea about how it could be done?
|
|
|
|
|
Just to be sure: you don't use MFC and you work only with the win32 API ?
|
|
|
|
|
Right, i'm using only winapi.
|
|
|
|
|
Kosomot wrote: I was wondering if there's any way to manually create a modal window
offcourse.
If you look into the source code of DoModal() function, you can find how MFC is creating a Modal dialog.
It first disables the parent dialogs( if any ),
then shows the new dialog,
runs a messges loop untill the dialog is closed
Enable back the parent dialog,
nave
|
|
|
|
|
Kosomot wrote: I was wondering if there's any way to manually create a modal window
Here's[^] an example.
|
|
|
|
|
Thanks alot, i'll check the examples out.
|
|
|
|
|
Hi all,
I have started one thread(UI thread) several number of times either at same instance of time or at different instance of time. if i want to end a single thread how will it find out which thread to close.
can anybody help me in this....
thanks in advance
|
|
|
|
|
Hi,
Every thread will have individual handle and ID. Besides everything depends on way how you will want closing your threads.
-----------
Mila
|
|
|
|
|
How to get that individual handle?
|
|
|
|
|
when you create thread e.g.
HANDLE hHandle = CreateThead( ... );
CreateThead function returns handle to the only that one thread. Besides the last param of CreateThead returns ID of the thread.
-----------
Mila
|
|
|
|
|
who has smtp and pop protocol in Visual C++?? please email me:xinwenhui2003@163.com
thank you very much!;)
|
|
|
|
|
xinxin0629 wrote: who has smtp and pop protocol in Visual C++?? please email me:xinwenhui2003@163.com
i don't have.. what exactly your problem!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hello,
I am developing a software on VC++ and MFC. In that i have given a series of images. I have to create a MPEG1 video file from the series of these images. and help me in how can i do that work. Please help me its very urgent. I want also specification of MPEG1 can you arrange it for me?
Thanks and regards
Yudhisthira Attry
|
|
|
|
|
I also don't know. But still I'll suggest u, search google for the convertor of JPG format to MPEG format. Many source codes / libraries may be available.
Come online at:-
jubinc@skype
|
|
|
|
|
hi,
i am using Windows registry to store an integer value on closing of my dialog and running the application again i am retrieving this value.. this retrieved as string and i tried using "atoi()" to convert but iis giving following error.
"'atoi' : cannot convert parameter 1 from 'CString' to 'const char *'"
and the lines while retrieving the string are..
System::String* valueNames[] = keySoftware->GetValueNames();
for( int i = 0; i < valueNames->Length; i++)
{
CString strValue = static_cast<system::string*>(keySoftware->GetValue(valueNames[i]));
....
....
....
Harsha
|
|
|
|
|
I will let you know i a while
|
|
|
|
|
have you defined _UNICODE in your project settings?
nave
|
|
|
|
|
Do this way,
Suppose strKey contains the registry value it read.
int nTemp = atoi (strKey.operator LPCSTR ());
This will surely work.
Come online at:-
jubinc@skype
|
|
|
|
|
Do this way,
Suppose strKey contains the registry value it read and it is a CString object.
int nTemp = atoi (strKey.operator LPCSTR ());
This will surely work.
Come online at:-
jubinc@skype
|
|
|
|
|
Thank you.. i will try this out and let tou know
Harsha
|
|
|
|
|
Never call an operator this way, this is just uggly. You can simply do that:
int nTemp = atoi((LPCSTR)strKey);
But I don't think it will work because if the cast was possible it would have been implicitely done already and you wouldn't have an error.
|
|
|
|
|
i wonder why you needed atol here. If using MC++ , then you can use Convert::ToInt32 function for this purpose, instead of mix of all these things.
System::String* valueNames[] = keySoftware->GetValueNames();
for( int i = 0; i < valueNames->Length; i++)
{
int nValue = Convert::ToInt32(valueNames[i]);
...
}
And use <pre> tags while posting code.
|
|
|
|
|
Hi
All
I want to change dialogBox size and controls positions on DialogBox at run time in VC++ 6.0,so any body have code of this, then plz forward me.
Thanks in Advance
Atool
|
|
|
|
|
use MoveWindow() API.
nave
|
|
|
|