Transfering dll's with application ? help (C#)

  • Thread starter Thread starter Tito Brezovacki via .NET 247
  • Start date Start date
T

Tito Brezovacki via .NET 247

Hi.

The problem is very simple to describe, but tough to solve :(
I have a printer that doesn't print on win98 using the usualprocedures (print() in C#) . I could barely get it to work on xpby the way. (the xpsp2b helped).
Then I realized I could use a com port manipulation to send infothrough to it ! Of course, .net doesn't have what i need so ihad to use [dllimport("kernel32.dll")].
Everything worked fine on XP but all hell broke on Win98. Irealized that the kernel32.dll files were not the same so itried cheating the Win98 by giving the full path to the XP'skernel32 file( "C:\x\kernel32.dll"). But then another problemarose: dependencies! To be precise, kernel32 has a ntdll.dllfile "attached" to it.
I am stuck here. What next. I tried using al.exe but cannot getit to make XP's dlls go with the application. Haw can i dothat.

I like .NET but this really beats me down.
In the old days you could make an .exe and be sure it haseverything it needs in it :(

Please help me include the dlls somehow.

(please forget about trying to solve my printer issue)
 
How about I don't "forget about trying to solve your printer issue." You
are asking for help to go around a limitation that shouldn't be gotten
around. If I was a Windows 98 user, I would not want to install your
application because it depends on bits of other operating systems, which you
would have to include (in direct violation of your licensing agreement),
which will probably corrupt my system and make me want to kill you.

I'm not kidding. The problem is the printer and/or the printer driver. If
you can't find a printer driver for windows 98 for your printer, don't print
on windows 98 with that printer! Write a new driver, if you must. Do NOT
create dependencies on OS files from alien operating systems. You will
corrupt your user's OS.

Good Luck,
--- Nick

Hi.

The problem is very simple to describe, but tough to solve :(
I have a printer that doesn't print on win98 using the usual procedures
(print() in C#) . I could barely get it to work on xp by the way. (the
xpsp2b helped).
Then I realized I could use a com port manipulation to send info through to
it ! Of course, .net doesn't have what i need so i had to use
[dllimport("kernel32.dll")].
Everything worked fine on XP but all hell broke on Win98. I realized that
the kernel32.dll files were not the same so i tried cheating the Win98 by
giving the full path to the XP's kernel32 file( "C:\x\kernel32.dll"). But
then another problem arose: dependencies! To be precise, kernel32 has a
ntdll.dll file "attached" to it.
I am stuck here. What next. I tried using al.exe but cannot get it to make
XP's dlls go with the application. Haw can i do that.

I like .NET but this really beats me down.
In the old days you could make an .exe and be sure it has everything it
needs in it :(

Please help me include the dlls somehow.

(please forget about trying to solve my printer issue)
 
Back
Top