|
indra20 wrote: DWORD hModSP = lpfnLoadLibraryEx32W("MyDLL", NULL, 0);
GETHSPATTERNPPROC hGetHSPatterns = (GETHSPATTERNPPROC)GetProcAddress32W(hModSP, "GetHSPatterns");
before using parameters like you do, ensure it is not null...
DWORD hModSP = lpfnLoadLibraryEx32W("MyDLL", NULL, 0);
if (!hModSP) {
GETHSPATTERNPPROC hGetHSPatterns = (GETHSPATTERNPPROC)GetProcAddress32W(hModSP, "GetHSPatterns");
if (!hGetHSPatterns) {
}
}
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
-- modified at 8:39 Wednesday 22nd February, 2006
|
|
|
|
|
thanks for the reply, yes i am having those checks in my code.
What I think is that the pointer TCHAR** pchHSPaternNames is not been passed correctly. Could you please confirm on that??
|
|
|
|
|
consider a class say 'ABC'
i want to create a list holding only the ABC pointer locations
then is the below the correct way of declaring it :
CList<ABC*,ABC*> x;
one more question:
if i were to declare it as
CList<ABC,ABC*> y;
,then how is the second different from the first delclaration?
-- modified at 5:58 Wednesday 22nd February, 2006
|
|
|
|
|
I don't know, and the MFC collections are confusing to use.
I think the first one is the only valid.
if you really have to guess about a declaration with MFC collections, then change to STL
std::list<abc> /// a list of ABC
or
std::list<abc*> /// a list of ABC*
it's much more clear.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
namaskaaram wrote: then is the below the correct way of declaring it :
CList<abc*,abc*> x;
That is one correct way, but certainly not the only way.
For the former:
ABC *a = new ABC(), *b;
x.AddHead(a);
POSITION pos = x.GetHeadPosition();
b = x.GetAt(pos); For the latter:
ABC a, *b;
x.AddHead(a);
POSITION pos = x.GetHeadPosition();
b = x.GetAt(pos);
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
that means the former Clist stores "the pointer locations"(and returns the pointer value) whereas the latter Clist stores the object itself(and returns the pointer of the object stored in the CList)!...is it?
|
|
|
|
|
Correct.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
thank u sir!!!!!
|
|
|
|
|
Hi,
my program is used to submit values to asp page using post method. but the submitted values are send to server. while check with asp script. i cann't get the values submiited in the program. any one help me out.
pServer = session.GetHttpConnection(CStrDomain,nPort);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,CStrSuburl,Referer,1,NULL,"HTTP/1.0",dwHttpRequestFlags);
pFile->AddRequestHeaders(szHeaders);
pFile->SendRequest(NULL,0,(void*)(const char*)CStrTempQueryString.GetBuffer(CStrTempQueryString.GetLength()) ,CStrTempQueryString.GetLength());
urgent. thanks in advance.
Have A Nice Day!
Murali.M
|
|
|
|
|
I am usnig Visual Studio 6, to build a DLL. I want to change the target location where the .lib is generated, and I am unable to figure out what setting to change. Does anyone know?
thanks!
|
|
|
|
|
Hello Chintoo!
If you'r using VC++, you need to follow following steps :
change the output filename and path in Project -> Settings (Menu). and select your project and goto Library tab, and put the output directory you want.
If you'r using VB, you would get the save dialog box to specify the location for the DLL....
-Malli...!
|
|
|
|
|
Its VC++. There is no Library tab, as it is a DLL project and not a static library.
thanks!
|
|
|
|
|
Then you'll get that option as 'Output file name' in 'Link tab' in project->Settings option.
-Malli...!
|
|
|
|
|
Then you'll get that option as 'Output file name' in 'Link tab'in project->Settings option. Select 'Customize' option in category combobox...
-Malli...!
|
|
|
|
|
Hi ,
We all know windows system supports left mouse button drag and drop operation.
And we still can let our own application to support drag and drop operation.
My issue is can we get selected folders or files names before we release the left mouse button. That is to say, can we get selceted folders or files names during Drag&Drop's mouse moving process?
I want to use shell technicology to implement it. Unfortunately, I can get these informations only when I had clicked right mouse button or use left mouse button to move them to target folder,which supports drag&drop operation.
Any advice is welcome!
Thanks,
Well
|
|
|
|
|
During the Drag Enter and Drag Over notifications, you are able to determine what kind of data is being dragged; you might be able to take a peek at the data as well.
If using MFC, the OnDragOver handler gets a pointer to the COleDataObject for the dragged data. You might be able to call one of the Get*Data(...) functions off of that pointer.
However, note that you should NOT do anything too time-consuming during the drag over, or performance will be affected.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
James,
Thanks for you reply.
Maybe I had made a mikstake.
Here's drag-target isn't ourselves windows, so I cann't get Drag Enter and Drag Over notifications.
For example,User does drag&drop operation in two system owner folder(eg, C: source folder and D: target folder). Can we get draged data information when mouse is moveing in C folder region.
Maybe this issue can say it like this, Can we hook system's Drag&drop operation.
Thanks,
Welli
|
|
|
|
|
Hello Friends,
I have a question .
It is possible to call a second dll from the First Dll in VC++ application.
Case 1:
For example I a have dll called Sample A dll , then I have a second dll Sample B dll . It is possible to call Sample B dll from Sample A dll? All dlls are created using win32 dynamic DLL in VC++ platform.
Can any one tell me what are the merits and demerits of such a method ?
Case 2:
To avoid such a situation is it possible to include the functionality the second dll in the first dll, so that calling a second dll from the first dll can be eliminated completely.
Can any one tell me which of two Cases ie Case 1 and Case 2 is easy and more Reliable.
-- modified at 2:22 Wednesday 22nd February, 2006
|
|
|
|
|
you make the dll or its already there? if you are making it , then why not include the "second" dll's functionality in the "first" ? or if you want to separate the functionalities you can still do. its always possible. just like you call the "first" dll from your application, you can do it in the same way to call the "second" dll from the "first".. get me ?
VuNic
|
|
|
|
|
Hey all:
I wanted to have a basic service running on Windows XP. So, I went into Visual Studio (2005) and opened up the basic Windows Service template. I compiled, no problems, and went to the debug directory of my compile. As the template indicated, I typed myprojectname.exe /install . The install seemed to run fine, but, myprojectname did not appear as a new service. Can anyone explain this?
Thanks a lot!
Jim
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
Hell0 !
Did you check your tasklist (Taskmanager)? Is your service EXE runnig, is shown over there..?
-Malli...!
|
|
|
|
|
No, the tasklist does not list the program under it. I am definitely installing the programming as a service (or trying) as it does the whole, commit phase sucessful, etc.
Other ideas?
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
The MFC appwizard handles function pointer arrays very differently than the console appwizard. There are a variety of ways to establish a function pointer array with a console program. My favorite is:
void show1();
void show2();
void show3();
void (*pfun[3])() = { show1, show2, show3 };
This works great for a console program, but an MFC program objects saying you cannot create an array of functions, and then just to be frustrating, the error explanation says you can
create an array of pointers to functions.
I was able to create a function pointer array using typedef:
typedef void FOO();
FOO* pfun[3];
The MFC compiler compiles the above without errors, but it will not allow me to initialize the array. I get compiler errors from:
FOO* pfun[3] = { show1, show2, show3 };
and:
pfun[0] = show1;
pfun[1] = show2;
pfun[2] = show3;
and even:
pfun[0] = &show1;
pfun[1] = &show2;
pfun[2] = &show3;
How do I initialize a function pointer array that ?
CastleIsle
|
|
|
|
|
What compiler errors do you get, exactly?
|
|
|
|
|
Console and MFC application are the same for these kind of things. This is just standard C++ and this won't change if you are doing a console app or a MFC app.
Post the exact error message and the complete definition of the different functions and maybe we can help. Maybe you are trying to use class member functions which doesn't have the same prototype.
|
|
|
|