473,398 Members | 2,343 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,398 software developers and data experts.

win32 double-click-file-to-open-corresponding-app functionality

10
Hello all,
Sorry for the topic title but I couldn't describe it better..

I want to make a console application in win32, which when I click on a specific file ( with it's type associated of course ), it should open the application & get the file path in order to process the file.

If I drag the file on the application icon in the explorer, it loads & gets the filename in argv[1], but when I do it as I described in the beginning, it doesn't work.. Does anybody know anything about this??

Thanks in advance,
babis
Jan 31 '08 #1
2 1941
weaknessforcats
9,208 Expert Mod 8TB
I'm sorry. But does your progrma use windows or just console input/output.

That is, are you using GDI objects??
Jan 31 '08 #2
esrever
10
I am using GLUT, but for the problem it wouldn't matter..I actually found the solution, the application was called with a different current directory, so my init code which loaded some local files, didn't work correctly & crashed.
But then I found SetCurrentDirectory() and everything is ok now.. :-)
Thanks for your answer though!
Feb 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nicolas Lehuen | last post by:
Hi, Is it me, or does anyone else get significantly better pystone results under Cygwin versus the standard Win32 build ? CYGWIN 1.5.6 + python 2.3.3-1 : $ time python...
28
by: Grant Edwards | last post by:
I finally figured out why one of my apps sometimes fails under Win32 when it always works fine under Linux: Under Win32, the pickle module only works with a subset of floating point values. In...
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....
2
by: xman | last post by:
have someone one good link for pdf Programming Win32 Under the API or some other API C++ for Windows full tutorial/book/etc.
82
by: zardoz | last post by:
I've got this problem: unsigned long long lTemp; char cLargeNum="1324567890"; sscanf(clargeNum,"%llu",&lTemp); which under Win32 isn't working*. My program needs to compile under posix so...
1
by: pnp | last post by:
When this executes Win32.MessageBeep(BeepTypes.IconExclamation); (or any of the other beep types) nothing is heard... Any Ideas? -----------------------------------------------------------
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...
14
by: vittorio | last post by:
While I can compile the program below under freebsd via a simple: gcc prog1.c -o prog1 and it runs smoothly, I'm experiencing annoying problems with lcc-win32 under windows xp pro. In fact, under...
52
by: lcw1964 | last post by:
Greetings, all, I am trying to port a little bit of math code to gcc, that in the original version used the long double version of several functions (in particular, atanl, fabsl, and expl). I...
0
by: =?ISO-8859-1?Q?Tiago_Falc=E3o?= | last post by:
I search on google, msdn,... and i not find no solutions. Any ideia? ---------------------------- C++ Example Source: extern "C" __declspec(dllexport) double * extract(int nrows,int ncols,int...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
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...

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.