473,386 Members | 1,758 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,386 software developers and data experts.

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 1800
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.currentcultureinfo
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

"Brumarhindi Chicopella" <bc@__acraz_.deapusi> wrote in message
news:vx****************@newsread3.news.pas.earthli nk.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
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......
2
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....
5
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...
2
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...
8
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...
3
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...
0
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...
0
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...
3
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 =...
6
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...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.