473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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

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)

--------------------------------

From: Tito

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>8a0EgIsa6EyGSfCmV1avIQ==</Id>
Nov 16 '05 #1
1 1515
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

"Tito Brezovacki via .NET 247" <an*******@dotnet247.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
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)

--------------------------------

From: Tito

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>8a0EgIsa6EyGSfCmV1avIQ==</Id>
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ravi J | last post by:
What is the best way to transfer files between two .NET executables? I have a service, and a client program. Client asks service for data. The service creates one, and passes it back to client....
2
by: Niyazi | last post by:
Hi, I have BIG question and I gues it is the BEST question. I have a problem that I am guessing the best solution is to create some sort ..NET Services. This Service(s) must check every...
2
by: ORC | last post by:
I'm going to transfer a parameter to a dll that expects a VariantTime or alternatively a SYSTEMTIME - but what are the corresponding formats in C#? Thanks Ole
2
by: bernardpace | last post by:
Hi, I am writing a client server application using TcpClient and TcpListener classes. Now I need to transfer structured large amounts of data. I was thinking to transfer the data in an xml...
2
by: Piotr Karwatka | last post by:
Hi! I have a little problem an qeustion. In .NET Windows Forms I can do something like that: - i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd form I have Button1...
14
by: Adrian Parker | last post by:
For deployment reasons, we don't want to have to install our large app on each network client manually; we'd like to have our users run a very small app on their clients that basically runs the main...
2
by: iwdu15 | last post by:
hi, say i ahve a class i wrote in C++, how would i use it in my VB.net application? going along with it, say i ahve a VB.net class, how would i use it in my C++ project? thanks -- -iwdu15
5
by: guy.gorodish | last post by:
hi, i have a c# interop that pass struct into c dll. for some reason the data transfered into the c function is with incorrect order (meaning - members of the struct get other struct values and...
1
by: jabbari | last post by:
Hello, Please Help us...! I have a big problem ,so i searched on google and other search engine ,then I realized that so many other people have the same problem and they, all, have'nt been able to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.