Thanks. But PathIsDirectory() might not tell me if the user has write access to that path right?
sindhumahe
Posts
-
fopen fails to give error when UAC is enabled -
fopen fails to give error when UAC is enabledHi, I have a use case to validate an path that is given as an input to my application. I tried to create a file in the path with fopen and added the following check : FILE *fp= fopen(Input path, "w"); if( fp == NULL) { //Invalid path } else { //Valid path } This works well for cases when the input path is invalid or not present. But in certain cases, when UAC is enabled, a file cannot be created in the C:\Program files location. So in that scenario, if my input path is C:\Program files, fopen doesnt return any error and above code executes the else part, which is wrong. Can anyone please provide suggestions about this issue? Sindhu
-
problem while using delegates in c#hi all, i am trying to export my C++ functions to C#. and i have succeeded in exporting them. while importing the functions. now to one of such functions, i want to pass two newly defined functions in C# as arguments, how should i achieve this. kindly help me.i am very badly in need of the solution to complete my project. this is how i have implemented: 1. function exporting from C++: extern __declspec(dllexport) bool Callregistercallback(CRTSPWrapper* pObject,funccallback fptr_video,funccallback fptr_audio,void* ptr); where funccallback is a function pointer 2. function call in C++ test application m_oSarixrtsp->registercallback(GetVideoPacket,GetAudioPacket,NULL); where GetVideoPacket and GetAudioPackets are functions that are defined in the main of C++ 3.function importing in C# [DllImport("sampleclient_dll.dll", CharSet = CharSet.Ansi)] static private extern bool Callregistercallback(IntPtr pTestClassObject,IntPtr fptr_video,IntPtr fptr_audio,IntPtr ptr); 4.function defintion in C#: here i have defined two delegates to the functions namely Getvideopacket and getaudiopacket as follows: public delegate void getadelegate(char[] pBuffer, int nSize); public delegate void getvdelegate(char[] pBuffer, int nSize); public bool registercallback([MarshalAs(UnmanagedType.FunctionPtr)]IntPtr fptr_video, [MarshalAs(UnmanagedType.FunctionPtr)] IntPtr fptr_audio, IntPtr ptr) { getvdelegate objv = new getvdelegate(Getvideopacket); getadelegate obja = new getadelegate(Getaudiopacket); return Callregistercallback(this.m_pNativeObject, fptr_video, fptr_audio, ptr); } 5.function call from test application in C#: testclass.registercallback(Getvideopacket,Getaudiopacket,null); this is resulting in a compile time error stating: cannot convert a System method to System IntPtr. Kinldy help me out please. thanks in advance. regards sindhu
-
error LNK 2001 in visual C++ 6.0hi, ya i included the folder where the .lib files are present. any idea to resolve this , kindlyhelp.
-
error LNK 2001 in visual C++ 6.0hi, i will tell what i need exactly. i have .mak file called testprogs.mak. this has to be linked to four .lib files. the problem is how should i first build a make file. what i do is openworkspace -> .mak file -> ok vc 6.0 by default creates a workspace. now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors. kindly help me
-
error LNK 2001 in visual C++ 6.0hi, i will tell what i need exactly. i have .mak file called testprogs.mak. this has to be linked to four .lib files. the problem is how should i first build a make file. what i do is openworkspace -> .mak file -> ok vc 6.0 by default creates a workspace. now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors. kindly help me
-
error LNK 2001 in visual C++ 6.0hi , i already tried to include the libraries in the Directories tab of the Tools->Options dialog. but that didnt solve the problem . i opened a .mak file in the workspace, its not a project. so in its settings in dont have an option for link the .lib files . how should i build a .mak file which has to be linked to few of the libraries.
-
error LNK 2001 in visual C++ 6.0hi, i am facing the following trouble. i have included the path of the libraries ad "tools->options->include files libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol ___security_cookie like this i am facing the problem with four libraries. can u guide me ?
-
error LNK 2001 in visual C++ 6.0i am sorry. i am not sure about this. can u help me to resolve the error. the link u sent doesnt seem to be of much help.
-
error LNK 2001 in visual C++ 6.0hi , i am not able to find the .lib file which u mentioned. any idea to resolve my problem ? pplz help.:confused:
-
error LNK 2001 in visual C++ 6.0hey i am not able to find that library.. :(
-
error LNK 2001 in visual C++ 6.0hi, found the "buffeoverflowU.lib" in c:\ added the path in the library files as well as include files. but now facing new errors( 15 in number :( ) should i add anyother library?kindly help error of type 1: libBasicUsageEnvironment.lib(BasicUsageEnvironment0.obj) : error LNK2001: unresolved external symbol __imp____iob_func error of type 2:libliveMedia.lib(RTCP.obj) : error LNK2001: unresolved external symbol __ftol2_sse error of type 3:libliveMedia.lib(InputFile.obj) : error LNK2001: unresolved external symbol __imp___stat64i32 error of type 4 :libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol __imp___ctime64
-
error LNK 2001 in visual C++ 6.0oops sorry buddy. i added the bufferoverflowU.lib and have got the following error. LINK : fatal error LNK1181: cannot open input file "bufferoverflowU.lib"
-
error LNK 2001 in visual C++ 6.0hi , thanks for ur patient replies LINK_OPTS_0 = $(linkdebug) msvcrt.lib libBasicUsageEnvironment.lib libgroupsock.lib libliveMedia.lib libUsageEnvironment.lib i have added the libraries like this. now after i compiled , good news is erros got reduced. but new ones have popped in. "LINK : fatal error LNK1181: cannot open input file "libBasicUsageEnvironment.lib"" how to fix this one? can u plz help me ?
-
error LNK 2001 in visual C++ 6.0ya got it. but in my make file there is not option for including the libraries. well i paste my makefile here.it is still giving the same errors "libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol ___security_cookie" INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include ##### Change the following for your environment: # Comment out the following line to produce Makefiles that generate debuggable code: # NODEBUG=1# The following definition ensures that we are properly matching # the WinSock2 library file with the correct header files. # (will link with "ws2_32.lib" and include "winsock2.h" & "Ws2tcpip.h") TARGETOS = WINNT # If for some reason you wish to use WinSock1 instead, uncomment the # following two definitions. # (will link with "wsock32.lib" and include "winsock.h")#TARGETOS = WIN95 #APPVER = 4.0!include <ntwin32.mak> UI_OPTS = $(guilflags) $(guilibsdll) # Use the following to get a console (e.g., for debugging): CONSOLE_UI_OPTS = $(conlflags) $(conlibsdll)CPU=i386 TOOLS32 = C:\Program Files\Microsoft Visual Studio 8\VC COMPILE_OPTS = $(INCLUDES) $(cdebug) $(cflags) $(cvarsdll) -I. -I"$(TOOLS32)\include" C = cC_COMPILER = "$(TOOLS32)\bin\cl"C_FLAGS = $(COMPILE_OPTS)CPP = cpp CPLUSPLUS_COMPILER = $(C_COMPILER)CPLUSPLUS_FLAGS = $(COMPILE_OPTS)OBJ = obj LINK = $(link) -out: LIBRARY_LINK = lib -out: LINK_OPTS_0 = $(linkdebug) msvcrt.libLIBRARY_LINK_OPTS = LINK_OPTS = $(LINK_OPTS_0) $(UI_OPTS) CONSOLE_LINK_OPTS = $(LINK_OPTS_0) $(CONSOLE_UI_OPTS) SERVICE_LINK_OPTS = kernel32.lib advapi32.lib shell32.lib -subsystem:console,$(APPVER) LIB_SUFFIX = libLIBS_FOR_CONSOLE_APPLICATION =LIBS_FOR_GUI_APPLICATION = MULTIMEDIA_LIBS = winmm.libEXE = .exePLATFORM = Windows rc32 = "$(TOOLS32)\bin\rc".rc.res: $(rc32) $<##### End of variables to change MULTICAST_STREAMER_APPS = testMP3Streamer$(EXE) testMPEG1or2VideoStreamer$(EXE) testMPEG1or2AudioVideoStreamer$(EXE) testMPEG2TransportStreamer$(EXE) testMPEG4VideoStreamer$(EXE) testDVVideoStreamer$(EXE) testWAVAudioStreamer$(EXE) testAMRAudioStreamer$(EXE) vobStreamer$(EXE) MULTICAST_RECEIVER_APPS = testMP3Receiver$(EXE) testMPEG1or2VideoReceiver$(EXE) sapWatch$(EXE) MULTICAST_MISC_APPS = testRelay$(EXE) MULTICAST_APPS = $(MULTICAST_STREAMER_APPS) $(MULTICAST_RECEIVER_APPS) $(MULTICAST_MISC_APPS) UNICAST_STREAMER_APPS = testOnDemandRTSPServer$(EXE) testMPEG1or2AudioVideoToDarwin$(EXE) testMPEG4VideoToDarwin$(EX
-
error LNK 2001 in visual C++ 6.0oh thanks a lot. but mine is a .mak file . while building it i am facing such errors. how to link the libraries to the .mak file? any commands available?
-
error LNK 2001 in visual C++ 6.0kindly help me. i am doing a project regarding rtsp client and i am a new bie to VC 6.0
-
error LNK 2001 in visual C++ 6.0by "include in usage" waht do u mean ? just add the path in the include files?
-
how to resolve error LNK2001hi, i have a .mak file while has four depencies(libraries- libgroupsock.lib, libusageenvironment.lib,libbasicusageenv.lib and liblivemedia.lib) but on building the .mak file , i am facing the following problem. how to resolve this error. if the libraries are to be added , how and where to add them..? kindly help me. libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol _security_cookie
-
error LNK 2001 in visual C++ 6.0hi, i have a .mak file while has four depencies(libraries- libgroupsock.lib, libusageenvironment.lib,libbasicusageenv.lib and liblivemedia.lib) but on building the .mak file , i am facing the following problem. how to resolve this error. if the libraries are to be added , how and where to add them..? kindly help me. libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol _security_cookie