vc ++中的dir.h文件问题 [英] dir.h file problem in vc++

查看:155
本文介绍了vc ++中的dir.h文件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用c ++编写的程序(borland c ++ 4.5)

它使用了fnmerge函数,它需要dir.h头文件。



我想在visiual studio(vc ++)中使用这段代码。如何将dir.h文件添加到vc ++



fnmerge(Infilename,Drive,Dir,Current_file-> input_filename,Extension);

fnmerge(Outfilename,Drive,Dir,Current_file-> event_filename,Out_extension);





还有fnmerge()的替代品功能?我可以硬编码文件名和驱动器。



谢谢。

解决方案

请参阅我的评论题。它看起来像一些非常古老的东西。你可以找到类似这个函数的东西或者替换它的东西,例如:

http://www8.cs.umu.se/~isak/snippets/pmerge.c [ ^ ]。



-SA


你可以使用 _makepath [ ^ ]。


Windows提供了类似的功能,还有更多 - 看看 Shell路径处理函数 [ ^ ]



祝你好运

Espen Harlinn

I have program which is written in c++ (borland c++ 4.5)
it has used fnmerge function which need "dir.h" header file.

I want to used this code in visiual studio (vc++). how i can add dir.h file to vc++

fnmerge(Infilename, Drive, Dir, Current_file->input_filename, Extension);
fnmerge(Outfilename,Drive,Dir,Current_file->event_filename,Out_extension);


is there any alternative to fnmerge() function? i can hard code filename and drive.

Thank you.

解决方案

Please see my comment to the question. It looks like some really old stuff. You can find something like this function or some replacement for it, such as:
http://www8.cs.umu.se/~isak/snippets/pmerge.c[^].

—SA


you can use _makepath[^].


Windows provides similar functionality, and more - have a look at the Shell Path Handling Functions[^]

Best regards
Espen Harlinn


这篇关于vc ++中的dir.h文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆