479 byte By
ldk at 2007-11-17 19:07:54
I am using the clipboard to transfer basic text from one program to another. The first program calls the second one which depending on the user's actions will copy text to the clipboard. The first program then retrieves this text and displays it.The Problem:The data is not on the clipboard fast...
Hi All, I wrote a DLL and tried to call it though a VB Client. My DLL was working fine. Now in the DLL used BSTR data type( I am using BSTR for the first time and thus am not comfortable with it) and some conversion functions T2W ,W2T but I did not change the signature of the API my DLL was expo...
How do you use standard C functions to find the length of the file - I open the file with standard fopen()...now how do I get the file length?<br/>Many thanks,<br/>Mark
870 byte By
kiranvsp at 2007-11-17 19:10:42
unhandled exception in XXXX.exe (NTDLL.DLL): 0xC0000005: Access Violation -----> Above is the error which i getI do not get any error messages when i am the debug version of the program.Initially I had some memory leakage in the debug output window but I have already corrected it by deletin...
732 byte By
ctraill at 2007-11-17 19:16:24
Hi, my problem with this is that I cannot get it to respond to a command I issue. The 2nd parameter should tell it to take a response but I cannot get it set in hte right way it seems :(My code just now is CInternetFile* responseFile = ftp1->Command(pasvCommand,ftp1->CmdRespRead,FTP_TRANSFER_T...
481 byte By
gtr420 at 2007-11-17 19:18:09
while modifying a program to work with DLL files, i tried to build the program containing the Dll file, and i got the following error:LINK : fatal error LNK1104: cannot open file "C:\WINDOWS\Desktop\vis.obj"after receiving that error, i did a find to try and locate the file in question and found non...
371 byte By
kadish at 2007-11-17 19:18:12
Hello, I am using a CEditView for a simple text window in an MDI App. When text is entered past the constraints of the visible window, and when the scroll bars are used, the text is not visible. All I get is pixel or two when the text is displayed. What should I do? Is their an updatewi...
Hi All,I have 2 separate applications say X1 and X2,X1 receives all the data and stores it in a file now this file should be opened through X2Consider for example,GetLogic() fn. in X1 gets the logic from the device and stores it into a file and immidiately this file should be opened through X2 This...
Hi All,<br/>Can anyone please explain me on how to write a variable(integer type) into the registry and also how to read it back<br/>Thanks <br/>Uday
179 byte By
Samiam3 at 2007-11-17 19:21:12
How do you make line numbers appear when printing a .CPP file, or .h file. I would like to correspond line number on the screen, to a line number in the printed copy of the file.
2503 byte By
arch at 2007-11-17 19:21:25
Hi,I need some help for processing Windows messages.I have a Dialogproc function for processing all the messages that are generated for my dialogbox. In the dialogbox I have a listview control. I increase the column width by mouse drag operation. At the end of the drag a HDN_ENDTRACK message is gene...
how to make ballon shape tool tip? Help
309 byte By
Try Try at 2007-11-17 19:22:16
I 've complied a VC++ dll (see attachment)Then I call the function in VB by the following coding:Private Declare Sub SetMessages Lib "C:\DLLSHMEM\DLLSHMEM.dll" ()::Call SetMessagesBut error "file not found" is resulted.Can anyone tell me why? thanks...
743 byte By
soledad at 2007-11-17 19:22:19
Hi All,I create a service to insert , update and delete database.After running many times, my event log has the error:The COM+ Services DLL (comsvcs.dll) was unable to load because allocation of thread local storage failed. Process Name: MyService.exeError Code = 0x80070008 : Not enough storage is a...
2441 byte By
hicham at 2007-11-17 19:23:09
Hi gurus,I am trying to put listeners on folders. I can do it for one or two folders ( a limited number of folders). Do you know how can I do it for unlimited number of Folders?Here is the code...#ifndef __FOLDERLISTENER_H_#define __FOLDERLISTENER_H_#include "resource.h" // main symbolsextern...
1377 byte By
hicham at 2007-11-17 19:23:43
hi gurus,I am wondering what could be done to fixe the following linking problem.Thanks very much.Linking... Creating library ZeDLL/DMailerSvr.lib and object ZeDLL/DMailerSvr.expDMailerSvr.obj : error LNK2001: unresolved external symbol "struct ATL::_ATL_FUNC_INFO OnFolderRemove" (?OnFolderRemove@...
773 byte By
virginie at 2007-11-17 19:23:48
first can u plz try to build my files to see it.i send u the complete versionif u want to switch languagesgerman = 1031'french = 1036engLISH = default = 1033(at my place!)i need to switch at run time betwen dlls to switch languages( for now, until support from the dialog , i switch hard codded...
284 byte By
perrola at 2007-11-17 19:24:09
Hello,<br/>Is there anybody that can tell me why I have two different behavior whit the same source code, one being compiled in release with default optimizations, and the other with Maximize Speed optimisations (this last one has a bad behavior)<br/>Thanks<br/>Laurent
OK guys i am new here but not to programming. i am an openGL programmer and i am having trouble at home running an OPenGL program. ive made sure all the GL files are included and my video card has the latest drivers. i am using win 98 with a voodoo3 video card. when i try to compile an openGL progra...
I wrote a DLL to packet ADO functions.And I linked its lib file to my applications.I wrote a empty function in it and I called it with a minute timer in my application.Through Window task manager I found that my application would EAT 4K memory every minute.I don't know the reason because I do n...
794 byte By
sunb1rd at 2007-11-17 19:39:52
I've always had the classic problem of random classes disappearing from the classview-- except now, the problem is that ALL classes are gone, leaving only the empty folders once inhabited by these classes.My new problem seems to be triggered by the renaming of the the project directory (each da...
1303 byte By
srinivasc at 2007-11-17 19:44:27
Hi all,I have crerated a VB Activex DLL to access ORacle DB . Public Function GetReadWriteConnection() Dim Con As New ADODB.Connection Dim strConnectionString As String Con.CursorLocation = adUseServer Con.Mode = adModeReadWrite 'Assigning DSN Name Con.Open "PROVIDER=MSDAOR...
524 byte By
oraclese at 2007-11-17 19:52:08
I insert the following code in the initialinstance() function:m_pConnection.CreateInstance( __uuidof(Connection) ); try { m_pConnection->Open("Driver=SQL Server;Server=127.0.0.1;\ Database=MyDB;UID=qx;PWD=esc","","",adModeUnknown); } catch(_com_error &e) { CString error; error.Format("f...
547 byte By
vmalve at 2007-11-17 19:54:38
Hi all, I am reading a text file line by line using fgets(); the code is something like thisfp=fopen(c:\\file.txt,"r");if(fp!=NULL){rewind(fp);while(!feof(fp)) { fgets( line, 150, fp );//i populate a list with the value in line. } if(fclose(fp))}the problem i face is -fgets reads t...
261 byte By
yyxxyy at 2007-11-17 19:55:31
If you compile and run the following code in VC++6.0, you will get different results in Debug mode and Release mode. Who can tell me why? :confused: <br/>void main()<br/>{<br/> int i=100;<br/> printf("%d,%d,%d,%d\n",i++,i,--i,i);<br/> printf("%d",i);<br/>}
1172 byte By
gknight at 2007-11-17 20:02:24
This is in reference to the article: http://dev-archive.earthweb.com/listbox/DualListManager.htmlI'm testing this procedure with an additional button that insertsa dummy string into the list, called "spare". The implementationcontains 2 lists: Available and Choosen. The only problem is that the...
356 byte By
Avaj at 2007-11-17 20:08:36
I use GetWindowRect() etc to position a bitblt onto my dialog and I used a y offset of 40 to compensate for the Menubar(or whatever it's called nowadays). Then comes XP, 40 isn't the right amount anymore(48 works). I hope there is a function(or a superior way of doing it) that will retur...
1436 byte By
black_j at 2007-11-17 20:09:12
Hi,I have a problem with values of clipping rectangle returned by GetClipBox(CRect*). I use CScrollView for viewing large document (the height is about 500 000 000 pixels). Everything works good if I use GetClipBox to get clipping rectangle, then I compute the data that should be drawed in that pos...
I build a dll to use in my app. In the dll I want to open several files. In debug verson,there are no errors or warings in the dll and the app run correctlyIn release verson,There are no errors or warings either and opening .dat and .txt files is OK,but opening the binary files always fails,.Anyone...
522 byte By
salcin at 2007-11-17 20:10:16
The following code generates a debug error.typedef struct { int x; int y;} *pPoint;main(){ pPoint p = malloc(sizeof(pPoint)); p->x = 1; p->y = 2; free(p);}"DAMAGE: after normal block (#40) at 0x003707A8."I do not see anything strange with this code. If I comment out the folloing lines//p->x...
1707 byte By
mohanrajh at 2007-11-17 20:13:48
HI, Could some one explain me why are these error, when i run the application developed from Visual studio6.0(MFC).The errors in Debug window areWarning: no shared menu for document template #139.Warning: no shared menu for document template #139.Warning: no shared menu for document template #138.Wa...
128 byte By
kea at 2007-11-17 20:14:44
I have some problem linking .h files with my main program using Visual C++ 6.0. Can anyone tell me the solution to this problem?
Dear All,I had Problems to work with Visual Studio under Windows XP Professinal.I work on my projects with Visual Studio C++ 6.0 and until yet under Windows NT 4.0. Now i have tryed to work with Visual C++ 6.0 under Windows XP. First of all i have seen no problems. But in detail i i get assertions a...
288 byte By
salcin at 2007-11-17 20:17:53
In VC++ 6.0 dumping all the names from std in the global namespace and the code completition will work perfectly. On the other hand if I do not dump the names, instead using std::vector for example, the code completition will not work!!! Have someone ever encountered this problem before?
sir,<br/>in dialog based application i want to change the color of a dialog box.as user will select color from color window & dialog box should be of that color.if any one can help then please.really i will appreciate that man always.thanks in advance.waiting for bright ideas.:)
hi Im taking computer science in my school and the vc++ (6.0) on all the computers dont work when you try to compile. It says there is an error running link.exe. The code has to be right. that's obvious. but if you must know what im putting in is this.#include <iostream.h>int main(){...
The example given on this msdn site to modify an ATL DHTML control is not working http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconModifyingDHTMLControl.aspThe documentation says"You can use the IWebBrowser2 methods because ATL provides a pointer to that interface for...
578 byte By
bbss at 2007-11-17 20:19:41
I compile and link codes that i successfully linked under Win2k Pro under WinXp Home Ed.. Firstly there are no problems. Then I met a link problem : "Linking ........". It looks that VC is working on the linking, but it doesn't response anything, even if I push the stop link button. I wait for...
1163 byte By
Wiz at 2007-11-17 20:21:36
Hey, I'm trying to compile a program that uses ADO in a VC++ 5 environment. I have imported the msado15.dll as the documentation suggests. However at compile time i get a host of base class undefined errors from the .thl (or tlh... i cant remember!) file.The suggestion to get rid of it was to i...
469 byte By
strickra at 2007-11-17 20:21:41
I have a console program that compiles and links against some third party header and static lib files. All works fine under VS6 console program. The following line compiles, links, and runs:result = SCADAInit(1, SCADA_WRITE_NO_LOCK);But under an ATL COM I get thisOSIScada.obj : error LNK2001: unreso...
I have a MFC application written in VC++ .net it incorporates OpenGl in it. I have a bunch of scroll bars in it. When I incorporated these scroll bars I started getting a debug error Damage after block #100. The code for the scroll bars is as followsint iTemp; float fMin,fMax; CAnthroDBDoc* pDoc=Get...
281 byte By
Bengi at 2007-11-17 20:25:01
hi guys,<br/>how come visual c doesn't load a listview control in win2000<br/>while i can load it in win98 (after compile & run build)<br/>it seems if a listview is on a dialog, the exe wont execute (win2000) while in 98 it does (i put commctl.h)<br/>please help,<br/>Ben
407 byte By
Bragi at 2007-11-17 20:26:58
As the thread title, is there any unicode to ansi converter in linux ? My probelm is I feed XML document some multibye characters in it into my program with Unicode Style. The parsing tools is Xerces. But in my program all data is ansi. I need to convert those myltibyte characters from unicode to a...
619 byte By
BeePo at 2007-11-17 20:30:36
Can I automate Adobe Acrobat? How?I used ShellExecuteEx to print .pdf files...I waited using WaitForSingleObject() for first pdf file finished in printing. Then I moved on after the document is printed.The problem is I have to close (by clicking X at the top right corner of Adobe Acrobat) it every t...
Hi everybody,I'm using the MSCOMM32 control in my VC++ application.I've set the SThreshold property to 1, in order to be notified via the comEvSend event, whenever the output buffer is completely empty.However this is working fine on baud rates >= 9600, but not on 300 or 2400 bauds.On 3...
146 byte By
lily311 at 2007-11-17 20:39:09
I defined several groups of Radio Style CheckButton and associated variables, then this warning occurs.<br/>Why?<br/>Any help be appreciated!
247 byte By
cup at 2007-11-17 20:39:33
if (10 <= x && x <= 20) ...<br/>I suppose it comes from<br/> 10 <= x <= 20<br/>I normally code it as<br/>if (x => 10 && x <= 20) ...<br/>Any opinions?<br/>Oops! sorry - posted in the wrong forum
I have a MFC code with 4 split windows. One of the window renders OpenGlScenes and other 3 are just forms (CFormView class) When anything in this form changes, it has to show the corresponding change in the OpenGl Scene so I have a document class object declared by the name of pDoc and then I have a...
HelloSometimes after 2-3 days work with a project, VC6.0 stops to show members of a class.For example:I have a code:CDC dc;Then I input:dc.And now VC6.0 must usually show the members of CDC, but nothing happens.Does anybody perhaps know the solution of this bug?thx-demetrius...
2063 byte By
bueckerd at 2007-11-17 20:43:20
When I perform a build of a MS C++ V6.0 project on two similar platforms, I get drastically different executable file sizes.Background:1. I am using the same PC (Gateway, PII 266 Mhz) for both builds.2. There are two hard drives installed, a WDC 4.0Gb, and a WDC 18.6 Gb.3. Each HDD has Windows 200...