224917
Posts
-
Failed to Update system registry -
Client /Server application with VPN connectionBugslayer1 wrote:
3. The client program cannot connect to the server program when the client program is installed in a computer is logged in through VPN into a company network.
Are you able to establish connection to the server socket using telnet.exe from the client box?
-Suhredayan
-
Windows service & TimersMsdn says, the timer handler method does not execute on the thread that created the timer; it executes on a ThreadPool thread supplied by the system. And the threads in the managed thread pool are always background threads. Does this explain why you are not receiving a callback on the UI thread when tried from WinForm or WF applications?
-
Question on shutting down another program and wating for it to exit.Is it spinning inside the while loop while (mytrue)? Also how did you verify the server has shutdown?
-
Stack corruption - STRANGE PROBLEM!!Shailesh H wrote:
line 2:dlg.SetTitle(strDialogTitle);//Set the dialog Title
Is strDialogTitle of type CString? If then is it shared across threads? -Suhredayan
-
error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue -
error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." IssueIt should be somewhere inside tools->options Project->Properties->Custom Build Setup..."Post Build". Most likely the output file is configured to be registered using "regsvr32"
Suhredayan
modified on Thursday, December 17, 2009 1:09 AM
-
fatal error C1001: INTERNAL COMPILER ERRORRemember facing this before, but can't recall how did it got resolved :( . Can you try cleaning up the temp files/folder using CCleaner?
-Suhredayan
-
MS-SQL - Bulk Insert queryAshfield wrote:
How about defining a default value for the column?
That may not work since the timestamp is same only per bulk insert. I do have a solution for this, wrap bulk insert inside a stored proc, and update the the timestamp from SP. But this would introduce few additional steps, was wondering if this can be avoided in case if BULK INSERT already has this feature. Thank you, Suhredayan
-
MS-SQL - Bulk Insert queryI have a .csv file with following column:
Col1,Col2
And the data table has one extra datetime column:
Col1,Col2,TimeStamp
While importing data using BULK INSERT from the CSV, is there a way to specify the value for the TimeStamp column too? (Timestamp would be same for all the newly imported rows)
Suhredayan
-
Preventing Windows messages from popping upAfter the error dialog, does your application continue to run? And do you know which is the API call that is causing this error?
Suhredayan
-
doubt in CFileCFile is not the right object to work with excel. Presently what you are doing is, creating a text file with name "example.xls" and writing/overwriting its data. Maybe using "modeAppend" may help you to get away with the overwriting issue. But still may not serve your purpose. To modify an "real" excel file, or creating a new excel you need to use Excel . Microsoft provides a way to start excel.exe invisible through your program and then open an existing/create_new excel file and make changes to it. This is called Excel Automation/Office Automation. http://support.microsoft.com/kb/196776[^]
Suhredayan
-
a question?Can you post the code part that is creating the pop up dialog. Just to see how you are creating this pop-up dialog within your application.
Suhredayan
-
a question?Your main application should not stop running if you close a pop-up dialog box that it created. Unless there is some kind of crash happening on the pop-up dialog box clean up.
Suhredayan
-
WebBrowser control error INET_E_DOWNLOAD_FAILUREIs your browser getting switched to "Work offline" mode?
-Suhredayan
-
How to convert hundreds of VS2005 soltions to VS2008? -
how to search for a record in a file.He may have raised the terabyte issue only because you mentioned about vector. Maybe he was expecting something else - like it is may not be a good idea to search employee information based on name, since there may be duplicates.
-Suhredayan
-
SHGetSpecialFolderPath(NULL, dir, CSIDL_LOCAL_APPDATA, FALSE) special pathChesnokov Yuriy wrote:
in Vista it points to c:\ProgramData and it is not write access enabled Smile
My bad, I assumed it being all user's profile folder, every user may have read/write permission to it. But on a second thought if that was true - then it would introduces security issues - imagine if a non-admin user logs in to the machine and installs an .exe into all_user's_startup folder. Next time administrator logs-in, the same .exe would run under administrator's security privilege. This might be one reason the default location/name of this folder is changed in Vista, to make more sense. :) It seems you may need to create/identify a folder, and have the permission set during the installation - either through your program, or as instruction to the person installing your app. That is the best I can think of - I know that might be something you may already have in your mind as a last option.
-Suhredayan
-
SHGetSpecialFolderPath(NULL, dir, CSIDL_LOCAL_APPDATA, FALSE) special pathChesnokov Yuriy wrote:
I need a special folder that already has r/w access for particular user on that computer (either ASP.NET user, service application user, windows application user)
Do you mean a user_profile directory where all the three users have read/write access? if then use: CSIDL_COMMON_APPDATA with SHGetSpecialFolderPath()
-Suhredayan
-
SHGetSpecialFolderPath(NULL, dir, CSIDL_LOCAL_APPDATA, FALSE) special pathChesnokov Yuriy wrote:
>>Is there a way to find out these 3 locations with some specific function when invoked from windows application?
No function may be available to do this. Because you are trying to access a different user's profile directory, what if the user is an Active Directory user account, and user profile's directory is on a network drive? What are you trying to implement? there should be some better solution than accessing another user's profile directory.
-Suhredayan