Can't load IMCLIENT.DLL

This forum is for support of the IM system.
I eXpress myself - therefore IM
Message
Author
Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Can't load IMCLIENT.DLL

#1 Post by Djiber »

Hi I'm John and I've recently started programing in XBase

I have problem with IM program so I'm posting a question here.

The problem is when I start ImClient.exe I get an error that say Cannot Load IMCLIENT.DLL even tho DLL is in same folder as EXE and I even copyed it in System32.
rdonnay wrote: I suspect that the problem you are having is that you need to rebuild IMCLIENT.DLL and IMSERVER.EXE using the same version of Xbase++ as you have installed.
I've started IMSERVER but had to use Debug from Visual XBase++ cause runing it from cmd didn't work (application was closed instantly after starting it).
I've rebuilded both projects (IMCLIENT and IMSERVER) and it didn't help, my problem with IMCLIENT.DLL still persist.
I'm using XBase++ 1,90 SL1

Hope someone knows where's the problem and he is willing to help me

Best Regards,
John Doe

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Can't load IMCLIENT.DLL

#2 Post by rdonnay »

Mr. Doe -

I am suspecting that you have either a wrong version .DLL or a missing .DLL.
You need Xb2Net.Dll.

Here is a utility that will help you:

http://donnay-software.com:8080/donnay/chk4dll.exe.

Run Chk4dll IMCLIENT.EXE.

This will tell you which .DLL cannot be loaded.
The eXpress train is coming - and it has more cars.

Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Re: Can't load IMCLIENT.DLL

#3 Post by Djiber »

Thank you for the utility, but it didn't help.

Utility returned that all 4 DLL's can be Loaded (by all 4 I mean it didn't list more) and didn't even listed IMCLIENT.DLL or XB2NET.DLL even tho like I've said before they are in the same folder as EXE (bin19_sl1)

Over the weekend I'll try to edit the code outside the Visual XBase++ and try to compile it with cmd and xpp, I've done some research and sounds like it could help.

Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Re: Can't load IMCLIENT.DLL

#4 Post by Djiber »

Compiling it in cmd with xpp worked and now I can start both with .exe (For Server I had to create shortcut and in Path add .\User Pass).

I've noticed that there's message log in IMMSG.DBF and now cause I'm new to all XBase I'm learning by editing to see what and ho it can be accomplished so I've tried to create DBF that will get all fields filled from IMMSG and that would separate messages for a single user but every time my code generate corrupted DBF (Even tho if I put it in new PRG and compile it DBF isn't corrupted).

This is my code for creating DBF:

Code: Select all

IF ! File("Manj.dbf")
 adbf := {}
 AADD(adbf, { "User_ID", "C", 20, 0 })
 AADD(adbf, { "Message", "C", 50, 0 })
 AADD(adbf, { "Datum",	"D", 10, 0 })
 AADD(adbf, { "Vri_P",	"C", 5, 0 })
 AADD(adbf, { "Vri_K",	"C", 5, 0 })
DBCREATE("Manj.dbf", adbf)
ENDIF

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Can't load IMCLIENT.DLL

#5 Post by skiman »

Hi,

Date is length 8. You are using 10.
Best regards,

Chris.
www.aboservice.be

Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Re: Can't load IMCLIENT.DLL

#6 Post by Djiber »

skiman wrote:Hi,

Date is length 8. You are using 10.
TY, I'll try, but isn't Date 00/00/0000 or 00.00.0000 so / and . makes it 10?

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Can't load IMCLIENT.DLL

#7 Post by Tom »

The date type is internally represented by a number, which has 8 bytes. MM/DD/YYYY is just a transformation you see.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Re: Can't load IMCLIENT.DLL

#8 Post by Djiber »

I've tried with 8 and it's still corrupted and still if that was the problem why DBF isn't corrupted if I create it from a different PRG file?

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Can't load IMCLIENT.DLL

#9 Post by rdonnay »

How do you know that it is corrupted? What error message are you getting?

It could be that you are opening it with the wrong DBE.

You may have created it with the DBFDBE and are trying to open it with FOXDBE.
The eXpress train is coming - and it has more cars.

Djiber
Posts: 27
Joined: Wed Feb 22, 2012 2:55 am

Re: Can't load IMCLIENT.DLL

#10 Post by Djiber »

Any suggestions for DBE?
And where do I decide tool with which I want to create DBF?

Main mystery to me is: DBF's you created aren't corrupted (except SENDMAIL.DBF) I edit your code just to add 1 more DBF and that DBF is corrupted (I presume it's using same tool to create mine DBF as it did yours cause it's in same PRG and I compile it with xpp in cmd) and after all same code for creating mine DBF works in a separate PRG file. I've tried to find some difference between creation SENDMAIL.DBF and all others, but didn't manage to find it (but maybe that's just mine lack of experience in XBase programming)

Good DBF file:
Image

Error I get when I open corrupted file with excel:
Image
Error I get when I open corrupted file with dbu:
Image
Translation: "File you are trying to open is in different format then it's extension. Before you open it check is it damaged and is it from reliable source. Do you want to open it anyway",I get that error when I try to open it with Excel (It opens all other DBF files fine except mine and SENDMAIL.DBF that's created by your project)

Corrupted DBF file:
Image
As you can see all columns are merged in 1 field of DBF and have some strange symbols.

Post Reply