How to define current directory? Actually a directory from which program started. And a back side of this: how to define whether file exist in a specified path ?
dudic
Posts
-
Current directory defining -
catching eventsI create ATL component with a number of methods. Some of them run perform long operations, and I need send to client application status of this. How do I have to add event to my ATL and listen it in a client application ?
-
DirectShowHow to get out the progress status in DirectShow when I encode a media file for example ?
-
Connection to COM objectHow do I have to connect to COM object from a simple console application. The problem I have is like that: Client.obj : error LNK2001: unresolved external symbol _CLSID_IOConverter Client.obj : error LNK2001: unresolved external symbol _IID_IIOConverter Debug/Client.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. Client.exe - 3 error(s), 0 warning(s) My code: DEFINE_GUID(CLSID_IOConverter,...) DEFINE_GUID(CLSID_IOConverter,...) int main(int argc, char* argv[]) { CComPtr converter = NULL; CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); CoCreateInstance(CLSID_IOConverter,NULL, CLSCTX_INPROC_SERVER,IID_IIOConverter,(void**)&converter); CoUninitialize(); return 0; } What do I have to change?
-
How to prepare code for using COMI have a problem with using COM in my application. For example, I create a simple dialog-based application in VC6 and I want to use COM here. What header files and where do I have to add, may be something I have to change in project settings.
-
Inserting ActiveX from VBWhen I insert VB ActiveX into a form (in VC++ for example) I have a problem with message boxes, which pop up when some event occurs. But my message boxes are not modal (I set vbApplicationModal). What do I have to do ?
-
modal dialog in ActiveXI have the next problem: In text field I print some numeric value, which can't be out of some range. if it is, the next code inits Message Box: If CLng(txtTriggerActions(Index).Text) > MAX_TIME Then MsgBox GetResorceString(ME_txtMAX_VALUE_IS) & " " & CStr(MAX_TIME), vbApplicationModal + vbExclamation, GetResorceString(ME_mWARNING) txtTriggerActions(Index).Text = CStr(MAX_TIME) Exit Sub End If But Message Box as a result is not Modal. probably it can't determine to whom hat it to be modal, as it is initialized in some another frame (in java frame). what to do ? thanks to attention.
-
compile errorWhen I try to compile *.c files in Visual Studio, it lists me a lot of errors, like: error LNK2019: unresolved external symbol __imp__send@16 referenced in function _main and all this errors are referenced to identifires from library "winsock2.h" Please tell me, what to do. Thanks.
-
changing languageHow to change language using VC++: for example, my windows XP is french and to read and use programs oriented for another language I have to perform a long operation of changing default language on my system. Where can I find information about this?
-
errorwhat to do if I get an error like: LINK : fatal error LNK1104: cannot open file "mfc42u.lib" Error executing link.exe.
-
System TrayCreating icon in system tray I can do now. My current problem is to put that icon to system tray, when Windows 2000(for example) starts.
-
System TrayThanks for answer. Can you explain me in details what is Shell_NotifyIcon() and how use it.
-
System Trayhow to make program appear, each time I boot computer, in system tray (like ICQ)?
-
Task Bar problemhow to prevent my program appear in task bar?
-
minimize buttonhow can I catch event of clicking on minimize button
-
How to run MFC applicationI have a little problem with distributing a program. As on other computers, which don't have installed VC6, don't exist some *.dll's, my application don't work. so, how do I have to register them during first install on computer?
-
problem with CIPAddressCtrlI will write you some of my code, and if you can tell me please where is an error: CIPAddressCtrl m_ip_address; CString set1="127",set2="0",set3="0",set4="1"; int s1,s2,s3,s4; s1=atoi(set1); s2=atoi(set2); s3=atoi(set3); s4=atoi(set4); m_ip_address.SetAddress(a1,a2,a3,a4); it doesn't create, because in debugger I see such picture: a1 = 127 '' a2 = 0 '' a3 = 0 '' a4 = 1 '' I don't understand where it take's this ''.
-
menuhow to initialize menu by right mouse click?
-
serializeI am writing like this: "ses" is my serializable class I want to save "name" and "date" ses.Add(name); ses.Add(date); and after I am writing into the file. mode "write".
-
serializemy problem is: I have a file, where I write some data(for example name, description, date). and I have to delete one record. how do I have to do this?