Hello everybody !I would like know if my application has a permission to access to registers if it is runnig in terminal services environment.Thanks Alusa !...
Comments (2) | Promote | Bookmark
controls similar to CFileDialogSat, 30 Dec 1899 00:00:00 GMTI need to populate a tab in CTabCtrl with the content of a custumized CFileDialog.It seems impossible to do, so I wonder if there exist the classes relative to the controls inside CFileDialog. For example the listbox that implements the filebrowser, or the combobox for file type, etc.Do you know if...
Comments (2) | Promote | Bookmark
Problem with EditControlSat, 30 Dec 1899 00:00:00 GMTHI,I am working with an application(EXE1) which gives input to an edit control of another application (EXE2) of 3rd party whose source code is not available. This EXE2 is dialog based.I am able to input in this edit control throu' [::SendMessage(hWnd,WM_CHAR,...)]. But I need to press enter aft...
Comments (2) | Promote | Bookmark
unresolved externalsSat, 30 Dec 1899 00:00:00 GMTWhen I try to link I get error messages that say:afxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadexnafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadexlibcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainCan someone tel...
Comments (2) | Promote | Bookmark
How to connect two views to one documentSat, 30 Dec 1899 00:00:00 GMTI have two views in different pans of a splitter window. One of the view is automatically attached to the document when I define the CDocTemplate but how and where should I add the 2nd view to the document?I want to be able to call GetDocument() from both views and they both return the same document...
Comments (2) | Promote | Bookmark
Exception handling - OnInitDialogSat, 30 Dec 1899 00:00:00 GMTWhat is the proper way to handle exceptions when they occur in OnInitDialog()? If I catch an exception in the OnInitDialog() function and call EndDialog() then no problem. But if I re-throw the exception to an outer try-catch block (see below), the outer block will catch the re-thrown exception...
Comments (1) | Promote | Bookmark
Deprecated functions & ANSI CSat, 30 Dec 1899 00:00:00 GMTI am converting an older (VC++ 6.0) dll to the VS2005 environment and am receiving warnings about deprecated functions. 1. Are the suggested functions (strcat_s for example) ANSI C Compliant? 2. When will the functions (strcat for example) no longer be supported? Thanks. ...
Comments (1) | Promote | Bookmark
mac addressSat, 30 Dec 1899 00:00:00 GMThi allhow i can read the mac address of a ethernet card?thanks...
Comments (1) | Promote | Bookmark
serializationSat, 30 Dec 1899 00:00:00 GMTHello,I am having some major serialization problems. I have a hierarchy of classes that need to be written to an output file in text form. So, when the overriden Serialize function in the doc class gets called, I wantto do something like thisvoid CTestDoc::Serialize(CArchive& ar){ // call the s...
Comments (1) | Promote | Bookmark
EncryptionSat, 30 Dec 1899 00:00:00 GMTHi All Can we make encryption or decription keys that window provides (CryptDecrypt() ,CryptEncrypt()) to compatible to all OS. How i make a key that encrypt or decrypt data with same key?thanks...
Comments (1) | Promote | Bookmark
Converting RTF to HTMLSat, 30 Dec 1899 00:00:00 GMTI want to convert a help window file (hlp or rtf format) to a HTML file.Do anybody know how to do this ?...
Comments (1) | Promote | Bookmark
HelpActiveX control on Dialog Locks upSat, 30 Dec 1899 00:00:00 GMTHave built an ActiveX control which displays a property sheet with 3 pages on it. IF the ActiveX control is dropped on to a FormView, It works fine. When I drop on a dialog and perform DoModal, the control displays properly, but when I do Alt+ tab to switch to another application, my container appli...
Comments (1) | Promote | Bookmark
directshow, Timeline, VMR9, DESSat, 30 Dec 1899 00:00:00 GMTHello,I don't know if VMR9 and DES are compatible, and since I haven'tdiscovered that they aren't , I tried. What you find below is code that I tried. I know it is wrong because I start getting assert failures elsewhere in my program when I insert this vmr9 code. The thing is I can...
Comments (1) | Promote | Bookmark
LogonUser always returns zeroSat, 30 Dec 1899 00:00:00 GMTHi all!I'm a beginner to Windows programming.I require a user to submit his username, paasword and Domain name to log him on NT system.I use LogonUser function. But the return value is always 0.I checked for the error code if any, it resulted in error code 1314,which says that process is not pr...
Comments (1) | Promote | Bookmark
Filtering Databases(PLEASE HELP!)Sat, 30 Dec 1899 00:00:00 GMTI need to know how to filter a database on iformation gathered from the user. I have created a database application with appwizard using odbc(Access Database). I need to filter it so that I can update the stock of one of my records....
Comments (0) | Promote | Bookmark
Animation TimerSat, 30 Dec 1899 00:00:00 GMTHello! I'm looking to implement a multimedia timer for accuracy within animation. I have a RenderScene() function i wish to call after a certain time period has elapsed. do any of you know how to create a multimedia timer which will do this? there's lots of documentation out there and it...
Comments (0) | Promote | Bookmark
URGENT!Passing Japanese characters to a window as if done through keyboard eventSat, 30 Dec 1899 00:00:00 GMTI am facing a problem in sending japanese characters to another application.To send english characters to an application I am getting the character and finding the virtual key code and scan key code for that character. I have tried usign keybd_event and SendInput to pass to the application. That is...
Comments (0) | Promote | Bookmark
Coding a Mail eXchange lookupSat, 30 Dec 1899 00:00:00 GMTDoes anyone know how to code a Mail eXchangelookup in VC++?I'm coding an e-mail program which sends the maildirectly to the receipient's server and not thrumy SMTP-server.Therefore I need to lookup the receipient'smailserver.All tips/trix/dox are appreciated...~J...
Comments (0) | Promote | Bookmark
MFC objects with an IDispatchSat, 30 Dec 1899 00:00:00 GMTOK,Here is the problem:I'm using MSAA(Microsoft Accessibilty) functions to retrieve a list of IDispatch interfaces for all of the MFC controls on a client window.Given an arbitrary IDispatch from this list is there any way to determine the type of MFC control that is associated with? If the MF...
Comments (0) | Promote | Bookmark
HOWTO: Automate Internet Explorer to handle Log-On Dialog box?Sat, 30 Dec 1899 00:00:00 GMTHello All!Using Internet Explorer DOM (Document Object Model) one can automate almost all functions of Microsoft Internet Browser: navigate URL, automatically fill-in data in forms, submit forms, etc.The question is: How to automatically submit Log-On Dialog, created by WebBrowser on 401 (Unauthoriz...
I am facing a problem in sending japanese characters to another application.To send english characters to an application I am getting the character and finding the virtual key code and scan key code for that character. I have tried usign keybd_event and SendInput to pass to the application. That is...
Hello! I'm looking to implement a multimedia timer for accuracy within animation. I have a RenderScene() function i wish to call after a certain time period has elapsed. do any of you know how to create a multimedia timer which will do this? there's lots of documentation out there and it...
I am converting an older (VC++ 6.0) dll to the VS2005 environment and am receiving warnings about deprecated functions. 1. Are the suggested functions (strcat_s for example) ANSI C Compliant? 2. When will the functions (strcat for example) no longer be supported? Thanks. ...
I have:struct newcoordinate{ vector <double> atom;};public: vector <newcoordinate> newcoordinatelist;In one of my functions, I fill the newcoordinatelist as follows: newcoordinate new_coordinate;for (int i=0; i<protein.atomlist.size(); i++){ // initialize x,y,z values with 0.0...
When using the following sentence to new an array of objects, we can only call default constructor.class1 *c = new class1[n];If I want to call the constructor with arguments, what should I do?Thank you....
Hi All Can we make encryption or decription keys that window provides (CryptDecrypt() ,CryptEncrypt()) to compatible to all OS. How i make a key that encrypt or decrypt data with same key?thanks...
Hi all,In my application i need to to save data permanently in the sytem to retrieve the data.for that i am using ini file.Here i am facing problem in getting the dataMy ini file contains [Project Name]version = 1.0.0.45company = XYZi wrote code like this to retrieve the dataGetPrivateProfileString...
Hi I am showing icons in a List control . It works ok in XP,2000, and 98 But when I run application in Vista the icons are displayed as black square(16 X 16 ) Please can you tell me is their any format difference in the Vista and other OS for Icons. Or can you please let me know what should be d...
HI,I am working with an application(EXE1) which gives input to an edit control of another application (EXE2) of 3rd party whose source code is not available. This EXE2 is dialog based.I am able to input in this edit control throu' [::SendMessage(hWnd,WM_CHAR,...)]. But I need to press enter aft...
just need to get the id of a record in the recordsetI searched the set and result in 2 records, other columns are fine, but when I get the id of this record, I found both id are the same, they are both '2', but they are supposed to be '1' and '4' my Access database set...