Solved

Wildcard in file name

Posted on 1997-04-13
1
521 Views
Last Modified: 2013-12-03
I have to write a function in a DLL for Windows NT 4.0 that can receive file name with wildcard (* and ?) and return a valid file name that can be use to do COPY(CopyFIle), DEL(DeleteFile) or RENAME (RenameFile).

I have no problem with DEL, but with COPY or RENAME I have to create a new file name from the wilcard and the name return by FindNextFile.

Is there a function like this in MFC or WIN32 API?

Thanks..
0
Comment
Question by:kasiopee
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 10 total points
Comment Utility
There are no features in MFC or the Win32 API that do this.  You'll need to do the string math yourself to develop a suitable target file name.

.B ekiM
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now