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

mfc / c++ directory creation problem

Hello,
I am writing an MFC application in the developer environment. i
am using some functions like "CreateDirectory" and "CopyFile" from
winbase.h.

Unfortunately these functions dont work when I run the exe normally,
but if i get into debug mode and step through the functions then the
functions work perfectly. I am NOT confusing between debug and Release
versions.

Can anyone please tell me what is it that I am doing wrong?

TIA,
R
Nov 13 '05 #1
2 4481
Rohan De Sa <ro*******@rediffmail.com> scribbled the following:
Hello,
I am writing an MFC application in the developer environment. i
am using some functions like "CreateDirectory" and "CopyFile" from
winbase.h. Unfortunately these functions dont work when I run the exe normally,
but if i get into debug mode and step through the functions then the
functions work perfectly. I am NOT confusing between debug and Release
versions. Can anyone please tell me what is it that I am doing wrong?


As the CreateDirectory and CopyFile functions, or indeed any function
from winbase.h, are not standard, their behaviour is entirely
implementation-dependent. Thus we cannot say what is wrong within the
context of ISO standard C. Please ask in
comp.os.ms-windows.programmer.win32.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"It's not survival of the fattest, it's survival of the fittest."
- Ludvig von Drake
Nov 13 '05 #2
Rohan De Sa wrote:
Hello,
I am writing an MFC application in the developer environment. i
am using some functions like "CreateDirectory" and "CopyFile" from
winbase.h.

Unfortunately these functions dont work when I run the exe normally,
but if i get into debug mode and step through the functions then the
functions work perfectly. I am NOT confusing between debug and Release
versions.

Can anyone please tell me what is it that I am doing wrong?


Yes : you're posting a question about C++ and the MS platform on a ng
dedicated to the C language as defined by the ansi and ISO standards.

This is plain wrong.

Bruno

Nov 13 '05 #3

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

Similar topics

5
by: DC Gringo | last post by:
I'm trying to create an installer that will deploy my web application onto a webserver http://www.myserver.com. Instead, it's forcing me to install into a virtual directory of the localhost...
0
by: Matthew Fitzpatrick | last post by:
My application has a settings class that is serialized to save and deserialized to load. I'm having a problem where i catch the WM_QUERYENDSESSION event via WinProc to save my application's...
1
by: Fred Mellender | last post by:
I wish to run a C# Windows Forms program on a Windows 98SE machine, from a directory that is owned by a Windows XP machine. The directory is shared via directory sharing from the XP machine to...
1
by: Sparky | last post by:
I want to create a directory on my web server from within code. I've tried using Request.PhysicalApplicationPath() to get the location of the application, and appended my new directory on the end...
1
by: Tony | last post by:
I'm porting an old Coldfusion based content and asset management system to ASP.NET (and oh, how good it feels to write REAL code again - was a C++ hack for 10 years, started doing coldfusion about...
4
by: r_burgess | last post by:
TheNewUser.Invoke("SetPassword", New Object() {"123"}) Does anyone have any idea why that call wouldn't work, even though I have supplied credentials which are fully capable of setting and...
1
by: | last post by:
I enabled my new creation "MyProg.exe" to start up at the second last screen of the windows install process, as set up in VB.net. My problem is, that MyProg.exe expects the current direcory to be...
2
by: ykgoh | last post by:
Hi. I've a problem of being able to create and remove a directory but unable to write a file inside the created directory for some strange reason. I suspect that this problem could be vaguely...
6
by: Sigmathaar | last post by:
Hi, while making an XML parser for the creation of an entire directory list I got this problem and I'm having trouble solving it. The program (not yet written) goes through an XML Schema Instance...
0
by: Steve Moreno | last post by:
I have an ASP.NET app that writes an Excel file out to a subdirectory within the root web and then emails it out as an attachment. If I have the <identity impersonate="true"/string in the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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...

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.