473,789 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("kern el32.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>8a0EgIsa6Ey GSfCmV1avIQ==</Id>
Nov 16 '05 #1
1 1536
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*******@dotn et247.com> wrote in message
news:uS******** ******@TK2MSFTN GP10.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("kern el32.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>8a0EgIsa6Ey GSfCmV1avIQ==</Id>
Nov 16 '05 #2

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

Similar topics

7
1538
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. Both programs run in .NET framework. Given this requirement, how best to approach the issue? Does .NET framework provides any class that can help? Thanks in advance,
2
595
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 hour the data that reside on AS400 and transfer into the SQL Server. Services also have to be run in between 8:00 AM and 5:00 PM
2
1525
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
1963
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 file, so that both on the server and on the client side it would be easy to parse the data. Now if I use the xml file, should the xml file be saved locally? Also
2
1510
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 control - on second Form i can acces data from Form1 like that: for example: MessageBox.Show(Form1.TextBox1.Text);
14
1194
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 installer from a hidden share on the network. We want a server app that we can run somewhere that will be able to send the necessary info to the client apps. Okay, so the problem is that we don't want to have the users type in the address of...
2
922
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
1923
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 other members get zero) can someone know how can i fix it? thanks, Guy
1
7209
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 solve it. My problem is: I want to import a dll in asp.net, and I have a major problem First i want to say that this dll works fine in a windows application written in C#, and It works fine when I use the ASP.NET development server (Local...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10410
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.