|
Can we see how are you calling it?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Papa wrote:
Can we see how are you calling it?
See below:
void CCopySqlDataLiteDlg::OnTestjdeschemadll()
{
HMODULE handle;
TCHAR* pchPath;
int nReturn;
handle = LoadLibrary(TEXT("JDEDSchemaCache.dll"));
if(handle != NULL)
{
procInit = (JDESCHEMACACHE_INIT) GetProcAddress(handle, TEXT("?Init@@YAHXZ"));
procConnect = (JDESCHEMACACHE_CONNECT) GetProcAddress(handle,
TEXT("?Connect@@YAHPADH@Z"));
pchPath = "C:\\dev\\jdeDirect\\jdedschema\\SQLLite";
nReturn = procInit(); // THIS IS THE EXE CALLING DLL 1
nReturn = procConnect(pchPath, 0);
}
}
JDEDSCHEMACACHE_API int Init() // This is the 1st DLL
{
hModule = NULL;
hModule = LoadLibrary(TEXT("SQLite3.dll")); // Load 2nd DLL Always Fails
return 0;
}
|
|
|
|
|
Are you sure that DllMain isnt throwing any exception?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Papa wrote:
Are you sure that DllMain isnt throwing any exception?
The dll works fine when loaded from the exe! So I dont think there is anything wrong with DllMain. Also the code in DllMain is that provided by VC++ and remains untouched.
Thanks,
Chris
|
|
|
|
|
What happens if both LoadLibrary() calls used absolute, instead of relative, paths?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
DavidCrow wrote:
What happens if both LoadLibrary() calls used absolute, instead of relative, paths?
I still get the same memory error.
Thanks,
Chris
|
|
|
|
|
Chris Ulliott wrote:
hModule = LoadLibrary(TEXT("SQLite3.dll")); // Load 2nd DLL Always Fails
What is the error code when LoadLibrary() fails? I mean, GetLastError()?
126 The specified module could not be found. ERROR_MOD_NOT_FOUND ?
-----------------------------
Get trial copy of comment generating tool CommentMakerPro, std::string and std::string containers viewer FeinEvaluatorPro and windows manager for Microsoft Visual Studio .NET FeinWindows at www.FeinSoftware.com
|
|
|
|
|
vladfein wrote:
Chris Ulliott wrote:
hModule = LoadLibrary(TEXT("SQLite3.dll")); // Load 2nd DLL Always Fails
What is the error code when LoadLibrary() fails? I mean, GetLastError()?
126 The specified module could not be found. ERROR_MOD_NOT_FOUND ?
As mentioned in the initial post, GetLastError returns "Invalid Access to Memory Location". Both dlls are Win32 produced with VC6.
Thanks,
Chris
|
|
|
|
|
is there a way to bind a socket to a network card,the socket is for a client not server.this is because in a multiple card senario i want to choose the card through which i want to direct traffic.
if u cant hack it race it or take it to bed then it aint worth having
|
|
|
|
|
|
Sir,
I am student of Punjab University College of Information Technology, Lahore, Pakistan
I have problem while using Borland C++ v3.1.
Problem:
=========
The size of an object in virtual inheritance increases 2 bytes
Class base
{
public:
int b;
base()
{}
virtual void f() {}
virtual void g() {}
};
Class derive : virtual public base
{
public:
int d;
derive()
{}
virtual void f() {}
virtual void g() {}
};
----------------------
derive d;
cout<<sizeof(d); gives="" 12="" why?
="" *
but="" when="" i="" don’t="" give="" constructor="" in="" derive="" class="" then="" the="" size="" of="" object="" is="" 10,="" because="" there="" will="" be="" no="" 2="" bytes="" extra="" layout.="" please="" help="" me="" out="" about="" finding="" myth="" these="" two="" bytes.
<b="">The object layout in figure is in following URL
OBJECT LAYOUT FIGURE
*/
The object layout where that extra 2 bytes are laid is drawn in atttchment with v-table layout.
Please contact me at!
informfarid@yahoo.com
|
|
|
|
|
mfareed_baig wrote:
The object layout in figure is in following URL
OBJECT LAYOUT FIGURE
I think you better re-check this hyperlink. It is incorrect.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In a typical SDI project, what should "file save" do in the main frame. What should be saved? I have project that when debug run is started up the GUI title bar indicates: Untitled - Project 1. I never understood why I was getting the Untitled part. Its like it thinks you are opening a file.
Thanks.
Jerry
|
|
|
|
|
jerry1211a wrote:
I have project that when debug run is started up the GUI title bar indicates: Untitled - Project 1. I never understood why I was getting the Untitled part. Its like it thinks you are opening a file.
If you do not like this behavior, override the frame's PreCreateWindow() method with:
cs.style &= ~FWS_ADDTOTITLE;
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
I am writing an application that will provide the feature of "taking" a pixel color from any other window, currently displayed. When the user right clicks with the mouse on the desktop, taskbar, or the system tray for example, the color (RGB) of the pixel he has clicked on must be obtained.
Do you have any idea how this functionality could be implemented?
The real question is how could I obtain another window's DC (from which I could get the pixel), and the mouse coordinates when the user presses the right button on another window...
Thank you in advance.
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
|
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
?
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
Vladimir Georgiev wrote:
?
What is your question? The provided link looks just like what you are after.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
My "?" was for the Greeeg's smiley. I did not understand what he meant about that.
But anyway, I agree that the link provided gives me the right clues for solving my problem, for which I thank Maximilien
I am sorry for the misunderstanding...
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
Vladimir Georgiev wrote:
My "?" was for the Greeeg's smiley. I did not understand what he meant about that.
It was just Greeeg's way of providing a hyperlink. He used an image tag instead of an anchor tag.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
How do I add an achor tag ?
How do I write a [code] section,
which appears in light yellow if I remember well
Is there a link that explains all of these things and others ?
Thanks !
|
|
|
|
|
When replying to a post, check out the formatting (and smiley) options below the text box.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thank you,
I am realizing now that with Mozilla browser only the smileys appears, not the others.
|
|
|
|
|
No matter. You can insert <A>, < PRE>, and <CODE> tags manually.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|