|
How can i get list of the names of all devices attached with current system in VC++?
|
|
|
|
|
Certainly not by repeating the question, and most positivley not after being provided with 5 links. Stop waiting for somebody to give you the answer and go do some research.
|
|
|
|
|
i need a c script to list the devices in the sytem. any one know this. help me.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Hi All,
Can anyone please tell me what is the difference between a DLL file,.Lib file .tlb file.
I am little confused about them.
Thanking you,
Ashwath.
|
|
|
|
|
ashwath1979 wrote: .Lib file
Static library is a lib
ashwath1979 wrote: DLL file
A dynamic library is a DLL
ashwath1979 wrote: .tl
Type libraries can be standalone files with a .tlb extension, or they can be embedded in a file as a resource. They are typically contained in files with the extension .dll, .exe, .ocx, or .olb. A quick way to check for the presence of a type library in a file is to try opening the file in OLEVIEW.EXE
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks ,One more doubt i have,
I have a exe.And calling a COM dll "example.dll" .In that there are some methods.I am calling those methods from my exe.To compile the exe
1.)where should the dll be residing.
2.)Is the .lib file required as i am loading the file dynamically by calling createinstance COM API.
3.)Why am i getting .lib not found error.
thanking in advance,
Ashwath Hegde.
|
|
|
|
|
1) anywhere in Windows path (for the application can find it). generally, you put it in the same folder as the one containing the exe.
2).lib files are for static link only AFAIK, but i don't know much about them.
3)did you look in your project settings that the full pathed lib where correctly provided, so that the linker can find it and link it ?
|
|
|
|
|
Thanks ,One more doubt i have,
I have a exe.And calling a COM dll "example.dll" .In that there are some methods.I am calling those methods from my exe.To compile the exe
1.)where should the dll be residing.
2.)Is the .lib file required as i am loading the file dynamically by calling createinstance COM API.
3.)Why am i getting .lib not found error when i am loading the Dll dynamically.
thanking in advance,
Ashwath Hegde.
|
|
|
|
|
twice ?!
|
|
|
|
|
sorry for that i wanted to be more clear in my question.
|
|
|
|
|
you could have deleted it
|
|
|
|
|
ok whats the answer for my question.
|
|
|
|
|
Hi All
I am using one console application and using getche and getchar function in this application.
ch = getchar();
ch1 = getche();
I found that using getchar when I press enter I get value 10(LF) in ch.
and when I press enter for getche() function i get value 13(CR) in ch1.
Why am I not getting the same value in both function?
When enter is pressed then two values are passed.that are 10(LF) and 13(CR).
So value of ch1 must also be 10 in place of 13.
Can anyone help me why I am getting different values in both functions.
Thanks in advance
BR
Sachin Ahuja
|
|
|
|
|
Are you using both the function calls in a sequence? i mean one statement after the other?
if Yes,
Pressing "Enter" button does mean you are entering \r\n together into the stdin(keyboard)
buffer.The first getchar() is returning the "\r". and the second getche() is returning
the "\n" .
can you test using getchar() once in your function and then, replace the getchar() with getche()
and then verify result?
regards,
haribabu
|
|
|
|
|
Hi
I have tried replacing getchar with getche in the function, but I am getting the same problem yet.
Also I am not using getchar and getche in sequence.
Rather I am using them in different functions.
Please reply if you find some solution.
Thanks
Sachin Ahuja
|
|
|
|
|
I need to do the Zip/Unzip using the Unzip32.dll & Zip32.dll from VC++ SDK/MFC
Any one can suggest ideas..
Regards,
Prabhu
PRABHDURAI
|
|
|
|
|
|
Hi..
I am creating an ActiveX control..and I have to set the Threading Model to both
'afxRegApartmentThreading' and 'afxRegFreeThreading' in the function
'AfxOleRegisterControlClass' in VC++ 6.0
But, the compiler gives an error...."'afxRegFreeThreading' : undeclared identifier"...
I have checked in MSDN...this 'afxRegFreeThreading' is a valid parameter..
Whats wrong here?
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
Hi All,
Actually i have made a worker thread n i want that thread should execute 2 times simultaneosly if a button is pressed. Only the thing i knw is multi-threading will be used...
How to do it?
I have done very basic progmming in threads
Can anybody help me in this.
thanxs in advance
|
|
|
|
|
Answer to your question :
Create the two threads by calling Afx begin thread twice.
Note before :
1. Both the threads should not share any data / resources.
2. if they share, its quite not possible to run them simultaneously(you can use synchronising techniques, but you will loose the "simultaneous" effect.)
regards,
haribabu
|
|
|
|
|
Hi Neha,
Here is the example of multi threading
{
HANDLE hr;
hr = CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))WorkerThreadProc,param list,0,0);
}
//Thread function for starting 2 process.
UINT WorkerThreadProc(LPVOID Param)
{
// Process
}
|
|
|
|
|
Hi,
In my one application I ma having a MFC CDateTimeCtrl control. The requirement is that, the format of date and time of this control and the users local date and time should be same. Means if users format is 24hr clock my control should also display the time in 24hr format. I have following two questions regarding this.
1] How I can know that user changed the format of his time? (I can find the time change by ON_WM_TIMECHANGE message but what if user changed only format and not the time?)
2] How to get the current format of users local date and time?
Regards,
Hemant kulkarni
|
|
|
|
|
consider using COleDateTime.
COleDateTime::Format
CString Format( DWORD dwFlags = 0, LCID lcid = LANG_USER_DEFAULT );
haribabu
|
|
|
|
|
I want to devlop a project in VC++ through which i can get list of all hardware's
drivers & components as mike,monitor,printer,fax... list that is connected with that perticular system.I don't have much idea about this,but i worked on VC++.
So if somebody send me some dummy project on this or any link,plz forward me as soon as possible.
Thanks & Regards
Pankaj
|
|
|
|
|