473,782 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Win32 app. or .net App.?

Hi,

I need to implement a stand alone gui application which need to call some
other regular DLL functions (unmanaged code). Should I use .net with C# or
just use Win32 API to write this exe? Is it easy to call any DLL function
from .net/C# program?

The 2nd question is that on a win32 app, I can use 'UNICODE' to support
localization (support different languages). How about on .net? Is it
straightforward ? On win32 application, I can have multiple resource for
multiple languages. How is this done on .net? Thanks for any help,

CT
Jul 21 '05 #1
5 1830
In C# you can easily incorporate win32 dll by using interop it will work fine
for localization window C# application its versimple only need to do
change form localizable property true and select Langauge in that case it
will create resx file for that specific language
then in programm set system.thread.c urrentculturein fo
for localization this link might be usefull for you
http://www.microsoft.com/globaldev/g...otneti18n.mspx
"Chi Tang" wrote:
Hi,

I need to implement a stand alone gui application which need to call some
other regular DLL functions (unmanaged code). Should I use .net with C# or
just use Win32 API to write this exe? Is it easy to call any DLL function
from .net/C# program?

The 2nd question is that on a win32 app, I can use 'UNICODE' to support
localization (support different languages). How about on .net? Is it
straightforward ? On win32 application, I can have multiple resource for
multiple languages. How is this done on .net? Thanks for any help,

CT

Jul 21 '05 #2
Elp
On Fri, 7 Jan 2005 23:16:15 -0800, Chi Tang wrote:
I need to implement a stand alone gui application which need to call some
other regular DLL functions (unmanaged code). Should I use .net with C# or
just use Win32 API to write this exe? Is it easy to call any DLL function
from .net/C# program?


As RiteshDotNet said, it's quite easy to call Win32 API from C# (via
Interop) provided that the API signatures are simple enough. However, if
your application is mostly about calling Win32 API that have no equivalent
in .NET, then it may be easier to just do as a Win32 application. If
calling Win32 API is just a small part of your application, then go to C#.
You won't regret it.
Jul 21 '05 #3
Chi Tang wrote:
Hi,

I need to implement a stand alone gui application which need to call some
other regular DLL functions (unmanaged code). Should I use .net with C#
or
just use Win32 API to write this exe? Is it easy to call any DLL function
from .net/C# program?


I do it all the time.

You should also see if you can get the source for the DLLs and convert those
to .Net.

COM needs to die.

--

Being born is like being kidnapped. And then sold into slavery.

a.warhol
Jul 21 '05 #4

"Brumarhind i Chicopella" <bc@__acraz_.de apusi> wrote in message
news:vx******** ********@newsre ad3.news.pas.ea rthlink.net...
Chi Tang wrote:
Truncated

COM needs to die.

Why?

/Fredrik
Jul 21 '05 #5
Look if you wanted to use simple win32 dll (Com component) then in that case
it will easy to do in C# , but if you wanted to use complex win32 API then in
that case go to any vb/vc com based application which gives better support
"Elp" wrote:
On Fri, 7 Jan 2005 23:16:15 -0800, Chi Tang wrote:
I need to implement a stand alone gui application which need to call some
other regular DLL functions (unmanaged code). Should I use .net with C# or
just use Win32 API to write this exe? Is it easy to call any DLL function
from .net/C# program?


As RiteshDotNet said, it's quite easy to call Win32 API from C# (via
Interop) provided that the API signatures are simple enough. However, if
your application is mostly about calling Win32 API that have no equivalent
in .NET, then it may be easier to just do as a Win32 application. If
calling Win32 API is just a small part of your application, then go to C#.
You won't regret it.

Jul 21 '05 #6

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

Similar topics

1
4975
by: RL | last post by:
Hi all, I am new and am lost with Win32::Process stuff. I want on perl script to start a process, then another perl script to terminate the same process. I can start a process using... ------------------------------------------------------- use Win32::Process;
2
4995
by: RL | last post by:
Hello Perl gurus, 1. I have a web page where I can push a button (dospawn.html). 2. This button calls a CGI script (spawnboss.cgi) 3. spawnboss.cgi calls a forking perl script (forkme.pl) 4. forkme.pl calls the process creation script (createme.pl) 5. createme.pl creates my notepad.exe process, but no window shows up on my PC. The result on my web browser is:
5
2217
by: Bryan Parkoff | last post by:
Please provide me the information when it is not in the correct newsgroups. I have been using C and C++ language for a long time when it is time for me to learn Win32 API functions that they can be written in C and C++ language. Please give me an advice where I should post to discuss this topic to the correct newsgroups. Also, where can I obtain the best textbook to learn and understand how Win32 API functions work in C / C++ language. ...
2
1375
by: Tony Johansson | last post by:
Hello!! When you for example use C++.net environment for develop an GUI application does this mean that you doesn't use win32 API as much as when you had visual studio 6.0 because of the large frame work classes that .net consist of? Does there exist frame work classes that does what the win32 API does.? I know that the .net frame work are the same for all net language but what
8
4772
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI which a win32 is not. You may correct me if I'm wrong on this point. //Tony
3
1516
by: Gil | last post by:
I need to create a web page in which its content should be controlled by some win32 application. this application may add or remove some gif images from the page and it should be smooth as possible as can. Can someone here direct me how to start that. Thanks in advance Gil
0
1931
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this assembly with registration-free COM interop from a Win32 application. I also want to use this assembly with a .Net application that I want to deploy using ClickOnce. However when I try to install the application from the deployment location I get...
0
2442
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform some action. The java call looks like this: Win32::SetChildShowWindow(0); Win32::Process::Create(
3
4105
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline = EBDTools::os_path("${nh_home}/web/aview/modules/svcrsp-ng/saSync.pl"); $success = Win32::Spawn($^X, "${^X} $cmdline ${optfile}", $pid); if (! $success) { my $lasterr = Win32::GetLastError(); return_configerror("Failed to create commit / sync process...
6
10055
by: Perl Beginner | last post by:
Good morning all, I had to reinstall Perl (ActivePerl 5.10.0 Build 1004) on my computer (Windows XP), the install went fine. however, I'm having issues loading Win32-GuiTest using the repository in PPM. the steps i took are: 1. saved Win32-GuiTest-1.50.5.zip from the search.cpan.org website 2. unzipped in the location c:/Perl/Win32-GuiTest 3. opened the PPM window and went to Edit-Preferences and clicked the repositories tab 4. i put...
0
9480
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,...
1
10080
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
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.