|
|
You can use the macro
AfxGetMainWnd()
Have a nice code day
|
|
|
|
|
what are the lanuages that support dll?
JAYARAJ
|
|
|
|
|
Hi
Almost all languages in windows suport dll.
what do you do?
Agh
|
|
|
|
|
mehrdadov wrote: Almost all languages in windows suport dll.
What about Basic, Pascal and COBOL
"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
|
|
|
|
|
Hi,
Those all are having only header files, obj files, lib files, etc. I think those languanges are not supported library files[Dll's].
If any one given the information regarding this I appreciate it.
|
|
|
|
|
Hello Alok,
Do you know delphi & VB support dll. & delphi is visual pascal. same for Basic.
Regards,
Diyang Mithaiwala.
|
|
|
|
|
Divyang Mithaiwala wrote: Do you know delphi & VB support dll. & delphi is visual pascal. same for Basic.
Sorry to be sound rude, Did I Mention Visual with Basic and Visual With Pascal..also i mention about COBOL.. isn't you find any Visual COBOL for same?
"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
|
|
|
|
|
J5121982 wrote: what are the lanuages that support dll?
Languages.. are you talking about Computer Lanaguage supporting DLL .. or DLl Supporting multiple lanaguage
"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
|
|
|
|
|
Hi,
I have defined a call back:
typedef int (*GETHSPATTERNPPROC) (TCHAR **&, long&);
I am then loading the library:
DWORD hModSP = lpfnLoadLibraryEx32W("MyDLL", NULL, 0);
Getting the function pointer:
GETHSPATTERNPPROC hGetHSPatterns = (GETHSPATTERNPPROC)GetProcAddress32W(hModSP, "GetHSPatterns");
Then calling the method:
pchHSPaternNames = NULL;
lNumPaterns = 0;
CallProcEx32W(2, 1, (DWORD)hGetHSPatterns, (TCHAR FAR **)pchHSPaternNames, (DWORD)lNumPatterns);
In "MyDLL" I am doing:
lNumPatterns = GetPatNum();
pchHSPaternNames = new TCHAR* [lNumPatterns];
and here it fails.
What is going wrong????
|
|
|
|
|
|
I am running the application in 98, there it's showing the rundll32 error dialog and stopping,
|
|
|
|
|
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...!
|
|
|
|