Also WM_PAINT is not good, it happens during the drawing of every control.
clint1982
Posts
-
Finished drawing dialog -
Finished drawing dialogI tried WM_INITDIALOG, but it happens before the dialog has finished drawing itself, so the message doesn't appear.
-
Finished drawing dialogHi I want to make a loading message box which disappears once the loading was finished. In order to do that I decided to use the function DialogBox in order to create a modal dialog, however, I couldn't find a message that indicates that dialog has finished drawing itself. I want to start the loading sequence right after the dialog and the message of "loading" appears on the dialog. Any suggestions ? I would like to use a dialog in order to easily make a nice loading message. Thanks a lot, Clint
-
Add an event on runtimeThere is the login dll of windows GinaDLL.dll In this DLL there is a function that opens a dialog box for entering the login username and password. I want to use the functionallity of this DLL and not override the whole DLL. I want to know when the user is typing in the username edit box and when he is typing in the password edit box. Since this is an external dll, I can't use the DECLARE_MESSAGE_MAP, BEGIN_MESSAGE_MAP and END_MESSAGE_MAP macros.
-
Add an event on runtimeHello I am working with MFC. I am loading an external DLL using LoadLibrary and call a function within this DLL. This function opens a dialog box and this dialog box has several controls. I have the HWND and ids of the dialog box and controls. I want to register to the getFocus event of one of the controls (On runtime). I was looking for a long time and couldn't find any helpful function or example, could any one help ?
-
Accessing files in a network shareHi I want to access files which are on a network share in another server. When I try to access (manually, not through C#) the other server I get the window of username and password and I can access the files. I want through C# to read the files which are in this share and to specify within C# the username and password for accessing the share. Any ideas ? Clint
-
Working with files in c++ unmanagedHello I want to work with files unmanaged. I've been using fstream for file i/o but the problem is that if the file is greater than the maximum value of long I am not able to seek within it since the offset in the seek command doesn't accept values greater than long. Is there any other way I should work with files ? (unmanaged, not using system.dll) Clint
-
tellp, tellg, seekp, seekgwell, I write bytes into a file, I seek to the end of the file and call (tellp or tellg) after flushing the stream, and get 2 as an answer. But if I close the file, I see that the size of the file is 188. So I expect that the answer would be 188. Clint
-
tellp, tellg, seekp, seekgHi I've used files long time ago in C++. I guess there is a certain new convention for using files in Visual C++ 2005, I am using the class fstream with binary files and I don't get the right file position when using tellp and tellg. Is there any new class which I should use or any other method ? I want still to work unmanaged not using the functions of system.dll which are used in .NET. Thanks, Clint
-
Log off windows screenThere is a screen that appears before a user logs off. He has to choose whether to log off or switch user. Or it can be the screen of log off / shut down and etc. I want to perform some code before this screen appears. How can I register to the event ? Thanks, Clint
-
Bulk insert - Fewer fields than in DBHi I want to use bulk insert in order to insert information from a CSV to the database. The CSV contains fewer fields than the DB. I don't want to use a format file, I want to specify all the options within the with clause. I need to map the fields in the CSV to the fields within the Database table. Thanks, Clint
-
Change typing languageI don't want a spelling checker. I just need that when focusing the textbox the language will be changed to a specific language so that the textbox will contain character just of the german language for example. Clint
-
Change typing languageHi I have a text-box in a form and I want to change the typing language automatically into a certain language ? Does any one know how to that ? Clint
-
Copying a file from windows shareHello I have a computer which has a share folder with username and password. I want to copy a file from this folder without having to map the folder into a drive just by a simple copy. What copy command accepts also username and password for file copying purpose ? Thanks, Clint
-
Multiple Instances - SQLSERVERthanks:)
-
Multiple Instances - SQLSERVERHello all How can I rename an instance of sql server not in sql. Clint
-
Multiple Instances - SQLSERVERHello I have a computer with sql server 2000 and sql server 2005. for some reason the instance of sql server 2005 is not published in the network appropriately. When I try to connect to the database engine I am going to the server name and I browse. I go to network servers and I can find the instance of SQL Server 2000 but I cant find the instance of sql server 2005. Does any one know what are all the options for registering the sqlserver instance ? Clint
-
Sql Server 2005 - Copy DatabaseHey Thanks for helping. I don't think that is the problem. Can you see any other reason ? I think that the server which I am trying to copy to has an older sqlserver 2005. How can I do the copying ? Clint
-
Sql Server 2005 - Copy DatabaseHello I am using Sql Server 2005. I have two different servers. I was trying to use the wizard of Copy Database in order to copy a DB from one server to the other. After arriving to the last stage where the copying process starts, I get an error in the field of Execute SQL Server Agent JOB : The job failed. Check the event log on the destination server for details. and on the destination server in the event log I get the message : Package "CDW_DT-A1_MLS09_1" failed. where DT-A1 is the source server and MLS09 is the second server. Anyone has ideas how to overcome this problem ? Thanks, Clint
-
algorithm equal_rangeHello I have created a map which looks : typedef map MapData; where ltstr is the comparator I use. struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) < 0; } }; I want to use the function equal_range in algorithm class. and to use my comparator, but I don't know how define the comparator for this function. Does anyone know ? Thanks, Clint