|
I only include one library wininet.lib but if I remove it all the functions from wininet.h don't work
I have no other librabies linked
I am using MFC support in a static library
|
|
|
|
|
hi every one,
i am reading VC++ and want to know that which and what are the important concepts in VC++.how to learn that...
|
|
|
|
|
Is this a trick question? All concepts are important. Learn the language as a whole.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi all
when i type( CoCreateInstanceEx() , it shows me the parameters , but when i compile it, gives an error "CoCreateInstanceEx is not a member of global namespace" and "undeclared identifer". i attached the <atlbase.h>. with cocreateInstane , it works(visual c++6).
thank you very much
|
|
|
|
|
From MSDN
"You must include the #define _WIN32_DCOM preprocessor directive at the beginning of your code to be able to use CoCreateInstanceEx."
Hope this helps,
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
my codes like these:
//printer name in buf
if(!OpenPrinter(buf,&handle,NULL)) //open printer
{
MessageBox("Could not open printer","Error",
MB_OK/MB_ICONINFORMATION);
return;
}
DWORD size;
ADDJOB_INFO_1 * info;
DWORD numNeed = 0;
size = 4096;
BOOL bReturn = FALSE;
info=(ADDJOB_INFO_1 *)LocalAlloc((LMEM_FIXED/LMEM_ZEROINIT),size);
//add job into printer
bReturn = AddJob(handle,1,(LPBYTE)info,size,&numNeed);
CString str = "E:\\1.plt";
memcpy(info->Path,str,strlen(str));
info->Path[strlen(str)] = '\0';
bReturn = ScheduleJob(handle,info->JobId);
LocalFree(info);
ClosePrinter(handle);
when i use ScheduleJob to print the file "E:\\1.plt",ScheduleJob return FALSE. I do not know how to use ScheduleJob in my codes.
Help Me!
|
|
|
|
|
Hi all,
I want to use command-line :
for example:
myfile.exe /f
Best wishes,
Thanks.
|
|
|
|
|
|
In addition to GetCommandLine() , there's also the __argc /__argv pair.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Some time back i come across an api which notify the application about registry change, but due HUMAN NATURE of forgeting thing at time they urgently required..... I too forget that api!!!
is any body remember that api!!!?
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
|
Hi,
I am trying to call the following code within a WH_GETMESSAGE hook procedure and it works fine. But the same piece of code fails inside a WH_JOURNALRECORD hook procedure. Can anyone help me in this regard.
void EnumIE()
{ CoInitialize( NULL );
SHDocVw::IShellWindowsPtr spSHWinds;
spSHWinds.CreateInstance(__uuidof(SHDocVw::ShellWindows));
long nCount = spSHWinds->GetCount();
IDispatchPtr spDisp;
for (long i = 0; i < nCount; i++)
{ _variant_t va(i, VT_I4);
spDisp = spSHWinds->Item(va);
SHDocVw::IWebBrowser2Ptr spBrowser(spDisp);
if (spBrowser != NULL)
{ MSHTML::IHTMLDocument2Ptr spDoc(spBrowser->GetDocument());
if (spDoc != NULL)
{ HWND hWnd = NULL;
spBrowser->get_HWND ((long*)(&hWnd));
}
}
}
CoUninitialize();
}
|
|
|
|
|
Hi,
Can anybody share some ideas on how to catch STL exceptions in a C++ code.
I would appreciate if some pseudocode or a link is provided with regard to this.
Thanks,
JOE
|
|
|
|
|
#include <exception>
#include <iostream>
try {
}
catch (const std::exception &err) {
std::cerr << err.what() << std::endl;
}
|
|
|
|
|
ALOK
I HAVE A XML WHOSE XMLDOMDocumentPtr IS pIDomOutDoc.
wchar_t *wcstr=pIDomOutDoc->xml;
//pIDomOutDoc->xml; returns the xml in unicode
out_XML= (char *)malloc( MB_CUR_MAX);
//out_XML STORES THE OUTPUT
wcstombs(out_XML,wcstr,MB_CUR_MAX);
::AfxMessageBox(out_XML);
BUT I AM NOT GETTING CORRECT OUTPUT.THE RESULT PRINTED OUT IS SOMETHING LIKE <yyyy>yyyy
|
|
|
|
|
alok
sorry to disturb u. i did it .i replace the MB_CUR_MAX BY CHAR[1000].BUT I WANT TO MAKE IT INDEPENDENT OF THE SUBCRIPT VALUE.
|
|
|
|
|
|
I want to convert the date and time in the character array format ( Wed, 16 Mar 2005 04:16:39 GMT ) to timestamp value using c++.
Thanx
|
|
|
|
|
Have you looked into COleDateTime::ParseDateTime() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I have created an ATL composite control, and am putting it on multiple instances of a modeless dialog box. For each instance of the control I am calling its draw function with different parameters but the multiple instances all display with the same parameters. What is happening and how do I get around this problem.
Esteemed members please help.
Deekonda Ramesh
|
|
|
|
|
Hi-
I have developed an ActiveX and I want it to use in browser, how can I give Params to the ActiveX, I overloaded the load method... but how the parameters will be read?
I have added the following piece of code in the header file,
BEGIN_COM_MAP(CiRemotePCActiveXCtrl)
COM_INTERFACE_ENTRY(IPersistPropertyBag)
END_COM_MAP()
and it gives me error messages,
error C2039: 'Lock' : is not a member of 'ActiveXCtrl'
error C2039: 'Unlock' : is not a member of 'ActiveXCtrl'
error C2259: 'ActiveXCtrl' : cannot instantiate abstract class
error C2440: 'static_cast' : cannot convert
from 'ActiveXCtrl::_ComMapClass *' to 'IPersistPropertyBag *'
error C2440: 'initializing' : cannot convert from 'ATL::_ATL_CREATORARGFUNC (__stdcall *)' to 'DWORD_PTR'
error C2660: 'CCmdTarget::InternalQueryInterface' : function does not take 4
arguments
I also implemented my class with 'IPersistPropertyBagImpl' interface,
Please help me in solving the problem,
Thanks in advance,
dwurity
Dharmendra
|
|
|
|
|
Have anybody had deal with neural networks????
I got one problem now, i need a good PCA aglirithm, it will be excellent if anybody give me a link to the source and theory. Especially i'm interesting in Oja, Sanger , Hebbian neural networks that make PCA.
And another question.. Shame on me, but i can't remember how to do it I got The DIB section (only bitmapinfoheader and array of bits), so i want to copy them to HDC. I'm using the source from Codeproject about capturing the images from AVI, and int saves them in the files, i would like to copy them to HDC as i said....
Thanks.
|
|
|
|
|
Rassul Yunussov wrote:
i want to copy them to HDC
If you have a DIB section, then you may have a handle to the DIB section, in which case BitBlt.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
hello,
my application asks the user to enter a few words and the application arrange these words to create a 15x 15 crossword puzzle .
do you know any alogrithm that can help me to arrange the words in a way that gets the best result
|
|
|
|
|