|
|
HWND hWnd;
CWnd *pWnd;
//for dialog item say...
GetDlgItem(IDC_PICexample,&hWnd); // IDC_PI.. is the id for your dialog
pWnd = CWnd::FromHandle(hWnd);
//and we are done...
i hope you wanted the same..if you need more information, please do let me know!!!
|
|
|
|
|
hi,
i m writing a code to enumerate network & local printer in win98 client m/c, the printer driver is installed in my own win 98 client m/c. the same driver is installed in server where the printer is connected.i want to get the printer from the server(network printer or remote printer)....
here is some bit of code to enumerate...
the network printer attribute should be 16 but i m getting 84 value ... WHY ???. sometime i m getting 1108 value for the same network printer....??
code ....---->>
void PrinterRpt9x()
{
BOOL ret1;
printersetting=true;
DWORD i;
PRINTER_INFO_5* pPrint=NULL;
DWORD pcbNeeded=0,pcReturned=0;
HPRINTMUTEX= CreateMutex(NULL,FALSE,NULL);
ret1=EnumPrinters(PRINTER_ENUM_LOCAL,NULL,5,NULL,pcbNeeded,&pcbNeeded,&pcReturned);
//Windows 95: Also enumerates network printers
// because they are installed locally.
pPrint=(PRINTER_INFO_5 *)GlobalAlloc(GPTR,pcbNeeded);
ret1=EnumPrinters(PRINTER_ENUM_LOCAL,NULL,5,(LPBYTE)pPrint,pcbNeeded,&pcbNeeded,&pcReturned);
for(i=1;i<=pcReturned;i++)
{
if(pPrint->Attributes == PRINTER_ATTRIBUTE_NETWORK)
{
_beginthread(printdata9x,0,pPrint->pPrinterName);
}
if(pPrint->Attributes == PRINTER_ATTRIBUTE_LOCAL)
{
_beginthread(printdata9x,0,pPrint->pPrinterName);
pPrint++;
if(pPrint)
GlobalFree(pPrint);
}
}
then i m enumerating the jobs in queue in a thread and creating log file for each print command...
please help in this regard
guide me how to avoid this error ???
in win32 api..
regards
skpanda
|
|
|
|
|
I can get the smtp server address from an email address by using DnsQuery() function.But I wonder wether I can get the pop3 server address or not.
If u can, tell me how. Thanks.
|
|
|
|
|
No, the pop3 server may be on a different machine entirely. Typically ISPs name the machine 'pop.something.com', but thats just an arbitrary naming convention rather than a standard.
|
|
|
|
|
Thank you first!
Rap off for you,for me,for our human.
|
|
|
|
|
stop posting every question twice!!
Don't try it, just do it!
|
|
|
|
|
Take a look at the Windows Multimedia library of the PlatformSDK, functions like waveInStart, waveInStop, waveOutOpen , waveOutClose
Peter Molnar
|
|
|
|
|
Hi,
I am using MSvc++ 6.0 and I had creat one application in MFC dialoge based using DX9 Sdk .
Now i Want to add this MFC dialoge based application to my new project But when I am adding this code to new project DX9's Class Information Doesn't Coming with and giving me lot of error of class.
I want to add DX9's class to New App. How can i do ?
So any one suggest good trick to do this ?
|
|
|
|
|
Check
- What is your needed header files
- What is your needed static linked libraries (*.LIB)
- What is your needed dynamic linked libraries (*.DLL)
- Or needed COM or ActiveX object (VC6 has some functions to insert the component into your project) in Project - Add To Project
Most of these stuff are avail in MSDN.
I guess there is no quick trick for that.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I am having difficulty in adding a getline functions data to a vector, can anyone tell me how to achieve it by getting all the lines and putting them one by one into the vector's elements? I would appreciate any help that I would get, Please help because I've been playing with this one issue for a couple of days and can't seem to overcome this.
|
|
|
|
|
<small><b>Snyp wrote:</b></small>
<i>can anyone tell me how to achieve it by getting all the lines and putting them one by one into the vector's elements?</i>
std::ifstream file(@"c:\myFile.txt");
vector<string> myVec;
string line;
while (file.good())
{
getline(file, line);
myVec.push_back(line);
}
something like that.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
|
Um... no.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Too bad! I don't know how many times I've almost conjured up the darkest of spirits with my ranting after having realized that there are too few \'s...
--
Intellectualize my blackness[^]
|
|
|
|
|
Thank you first!
Rap off for you,for me,for our human.
|
|
|
|
|
There is no ready source code.
CD Audio is just pure WAV audio written to a CD. You can use audio operations for example with DirectSound to access the audio stream and copying it to a buffer. Then use the Windows Media Audio SDK to convert the raw WAV data into WMA format.
See MSDN & WMA SDK for more information about the conversion, and the DirectX SDK for information on how to capture audio data.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Man, I've been working on this for EVER now, and I can't seem to get it right! I've got a toolbar that just won't seem to "take" the XP style buttons! You know, like where the google toolbar buttons have that nice "rounded" look when you mouseover them and whatnot? I want those in my toolbar, but it's just not working! I tried all the stuff on http://msdn.microsoft.com/netframework/using/deploying/default.aspx?pull=/library/en-us/dnwxp/html/xptheming.asp and still can't get it! Any thoughts? It's a DLL, of course... And the actual toolbar is a CWindow, and I'm sending the TB_ADDBUTTONS to it, which work just fine.
|
|
|
|
|
Did you do everything that was told to you on the site? And by the ways the google toolbar uses the xp themeing of the internet explorer instead if its own.
|
|
|
|
|
I did everything! :P I swear! :P And how does it use the xp theming of IE instead of its own?
|
|
|
|
|
I made the manifest, I put it in the resource file, etc etc etc....
|
|
|
|
|
You need to add the line "#define ISOLATION_AWARE_ENABLED 1" before including commctrl.h and the resource id for the manifest should have a value of ISOLATIONAWARE_MANIFEST_RESOURCE_ID which basically equates to 2. You can use reshacker to check the manifest has been added to the DLL. This works for my property sheet shell extension which is just another DLL loaded by explorer.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Awesome! That WORKED! You rock bigtime!!! Thanks a ton!
|
|
|
|
|
hi
I want to create a new desktop under WIN98.I may create a new desktop under win2000 with "createdesktop" API funtion ,under win98 how to do???
c++
|
|
|
|
|