577 byte By
Saeed at 2007-11-20 11:55:54
Ok I have a set of controls and they are being set during the input phase.I also need to display the length of a string (from an edit box) in another text control either interactive or onKillfocus of the editbox.m_szCounter.Format(_T("Length = %d"),m_szDatatosign.GetLength());UpdateData(false);Abov...
I'm trying to learn GUI and I'm having a tough time even starting because some things will only compile in Dev C++ and some things will only compile in VC++. I went to this site trying to compile some of their GUI applications to get a feel for them and many of them won't even work on...
Hi all,I am having a main exe dialog box from which another dialog box opens up which is having a button and a edit box. On clicking button my menu appears. what i want is when i click on menu item particular text should be written in edit box. when i open class wizard for menu items and choose my d...
268 byte By
kabilius at 2007-11-20 11:56:00
Hi all,<br/>I was told that to access .NET code, I have to <br/> use Managed C++ or expose the .NET bridge class as an ActiveX/COM object<br/>I am not quite sure what this means. <br/>Would be great if someone can enlighten me a bit.<br/>Thank you,
I have a program, that i creatd a text.. but i dont know how to display 18 lines (no less or no more). I have been given a random number generator.Here is my code, can anyone help me please?creates a text file named points.txt (in the default directory, overwrite it if it already exists) and writes...
hi to all respected membersi have a question that is there any way to set focus to "No" button in Afxmessage Box. like if i write AfxmessageBox(_T("Test"),MB_YESNO);then the default focus would be on the "YES" button . but i want this to be on the "No" Button.regardsDingo...
300 byte By
kranti at 2007-11-20 11:56:08
Hi Everybody,<br/> I wanted to know if there's any way to retrieve the image in the HTML edit browser to select it and perform operations like copy,paste in browser.I am able to perform these operations on text by using IHTMLTxtRange com interface but this doesn,t work for image....
hii have dialog box in which i have a list box .when i click each item in the list boxit should display the preview image on the same dialog box. i have some images and.bmp files .when i click each image list in list box it shoul show the preview of it on the dialog box how can i do this regardsva...
382 byte By
ngjackie at 2007-11-20 11:56:13
I know that we can use Visual C++ to write a CGI script. Which template should we choose to write a CGI script with Visual C++? Is it C++ file (.cpp) ? When we have done, how can we output the file in .cgi filename extension? One more question: Do any web servers which support CGI are able to execut...
Well, i have to build and compile a pair of DLL to make little changes, but when i build without make another, one of my 2 DLL (that's called by a visual basic 6 aplication), i find a lot of errors. I put it at the end of the post. The DLL is working for 4 years. And today works perfectly. But...
287 byte By
Kushi1 at 2007-11-20 11:56:21
Hi,<br/>I m porting pocket pc 2003 project into 2005 Windows Mobile5.0. Im getting an error while compiling. Error is:<br/>"identifier truncated to '_CE_ALLOW_MULTI_THREADED_OBJECT' "<br/>what does it mean ?Can anybody give me solution to this error?<br/>Thanks.
Dear All,<br/>I am developing an MFC application(Dialog based).<br/>I want to have tree like view for drives and folders of the sytem.<br/>Thanks in advance<br/>Prasanth
HI All,I am creating a dll for resource management.For this I created a resource.dll the entries i made in this dll file isin . defLIBRARY ResourceEXPORTSLoadStringFromDLL @ 1in .cppBOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID...
Hi all,I have a VC++ project, I compiled with VS2005 and it worked well.I built an MSI which is also fine.The problem is, When i installed MSI on another system and tried launching the application, it tries to load a DLL ( ati80.dll ) which is not there on this machine. Later I found that MSI is bui...
364 byte By
MrBeans at 2007-11-20 11:56:37
Hello All,I see that many of the latest software and drivers! seem to have .NET 2.0 framework to be a pre-requisite for installation. My guess is that .NET framework is used for the front end UI and good old application programming platform like Win32 are used in the Backend using interop. Am I corr...
323 byte By
Frank100 at 2007-11-20 11:56:39
Hi All,I am facing a problem during ClickOnce installation on VISTA MACHINE.[CREATE DATABASE permission denied in database 'master']If any one has any idea How to solve this problem during ClickOnce Installation, please let me know.In Vista we needs Administrative rights.Thanks...
632 byte By
George2 at 2007-11-20 11:56:48
Hello everyone,I am using Visual Studio 2005 to debug a Pocket PC 2003 application on Poacket PC 2003 SE Emulator (I am using ARMV4 architecture). When using F5 to execute the application, the break points I have set before debug (F5) becomes, the information from the break points is,-------The brea...
Hello,I hope this is the right place to post my issue. If not, don't hesitate to move it.I'm just trying to access the GPS port of my PDA. I can open it successfully using GPSOpenDevice but I can't get GPS_POSITION data using GPSGetPosition. It would return ERROR_SUCCESS if it was suc...
536 byte By
alan93 at 2007-11-20 11:57:04
Using a formview app.What I am thinking now is...1. Using Web Controlor 2. Downloading images on file open and display using CStatic.The URL to the images would be stored in the programs files and when a file opens they would load.This would be multiple images and would be associated with records so...
1175 byte By
mdumont at 2007-11-20 11:57:14
I am getting a Debug Error that I can't seem to figure out. I'm guessing its how my functions are calling other functions (and not the code).The message in the error said "the value of ESP was not properly saved across a function call. This is a result of calling a function declared with o...
1965 byte By
locksleyu at 2007-11-20 11:57:17
I am trying to test sending a message from a thread to a window (controlled by another thread) by using SendMessage().Here are the general steps of what I did:1) Create a project with the MFC wizard (mostly default settings)2) in CMainFrame::OnCreate() I create an object which is used to store a han...
1665 byte By
SkaR3D at 2007-11-20 11:57:18
Hello,Well Im attempting to get better at "if statements" (And C++ in general). However I have a problem with my latest project. Every time I try to build this application It sates that 'age' is an undeclared identifier. Does this mean that I have to identify it by placing 'int'...
1305 byte By
SkaR3D at 2007-11-20 11:57:23
Im trying to make an a very simple application where you insert all of your basic info (age weight height hair color and eye color) and then the program will continue on to tell you what you just input. (Example you say you weigh 182 lbs, you are 6 feet tall, you have brown hair and green eyes the a...
4639 byte By
jj71787 at 2007-11-20 11:57:24
Write a program that works with monthly rainfall data for a particular city. This program is partially based on Programming Project 1 at the end of Chapter 5. It uses the monthly rainfall measured in inches for the last 12 months (for Oct. 2006 - Sept. 2007). The data is to be read from a data file...
624 byte By
DCSSR at 2007-11-20 11:57:25
I am a novice programmer, interested in furthering my horizons, and am now wanting to tackle a simple graphics project with a rotating wheel at a very high speed. My questions are very simple. I have spent some time trying to become knowledgeable about OpenGL, Directx, C, Visuall C++, Assembly lan...
791 byte By
zspirit at 2007-11-20 11:57:27
Maybe I am tired at the end of today but I am not having luck passing function pionter to function, I was looking at some help here ( http://www.newty.de/fpt/fpt.html#chapter2)too.typedef void (*VOID_PROC_VOID) (void);void CTestDoc::OnFileSave(){ SafeSave(&CTestDoc::FileSave); // sytax error}void...
734 byte By
rlien at 2007-11-20 11:57:29
Hey people,Here comes a cry out for help at the end of the day. I am working on an IDE environment where I want a bar to appear on the left side of the frame. This is the bar that for example visual studio has where you set breakpoints. I am now using a dialog bar that I instantiated in the ChildFra...
7204 byte By
Rick2101 at 2007-11-20 11:57:30
I need help finishing this school project. I've been trying to work around the problems but I just keep going in circles. My Code is the following:# include <iostream># include <cmath># include <iomanip># include <ctime>int randValue( int level );int generateProblem( int...
137 byte By
Tamiz at 2007-11-20 11:57:31
I need to create a splitter window (vertical split) with navigation links on left side and text view similar to html view on right side
905 byte By
Taphoda at 2007-11-20 11:57:32
Hi, First of all I beg your pardon because my poor English.I need to run an application (using Delphi 7) that uses a COM component developped in Visual C++ (Visual Studio 2005), on a Windows XP environment, but without installing Visual Studio 2005.This COM component (xupita.dll) has dependences of...
Ok, first of all I am tottally new to C++ and programming in general. I am determined to learn C++. I have been using three diffrent books and been going VERY slowly as to not miss anything. I made this extremely simple program (at least to you veteran programers :P). I would just like some criticis...
1615 byte By
Plasmator at 2007-11-20 11:57:36
Hi, my application is just a simple dialog box (from a resource script) that I spawn using CreateDialog.I wanted to add some drop down menus to my application, so I added the following to my resource script just to test everything:#define IDR_MAIN_MENU 1001#define MENU_EXIT 1002//...IDR_MAIN_MENU ME...
Ok so I have been working on the following program for quit some time now (my eyes burn :p). I feel i have most of the code in place, as it should be, but when I compile I am getting "error C2601: 'FloatSum' : local function definitions are illegal"I can't seem to figure out exactly...
1025 byte By
forester at 2007-11-20 11:57:39
I want to post a message to the main UI thread from a secondary thread, the message is a CString type, when I ran the EXE, the string posted from the threadPorc() could be shown on the main dialog, but in the Windows task manager, the "VM Size" kept incrmenting, it looked like that the heap allocat...
OK. so im trying to read in from a file that contains names(6) each seperated by a comma.e.x. John Doe, Jane Doe, etc...I know using getline( in_stream, candidateNames[0][5], ','); would read the line up until the first column. I know i need a loop to cycle thru the array to put the strin...
397 byte By
lontana at 2007-11-20 11:57:43
Dear All,What is the best practice for writing classes:Should implementation of methods be inside the body of the class or should be defined separately?If yes should the implementation be in the same file or in some other?Should classes be defined in header or source files?Is it good practice to def...
902 byte By
John E at 2007-11-20 11:57:49
Gosh, I feel so amateurish today... For years I've been succesfully programming MFC apps where the Debug and Release builds behaved identically. They weren't always doing the right thing - but at least they did the same thing. Now suddenly, I've got an app whose Debug version works bu...
I am trying to categorize the behavior of the automatic priority boost done by windows in certain scenarios. I can see a +1 priority boost for around 200 ms when doing a Wait on a Semaphore or Mutex. I expected that a similar boost would occur when a message is received by a window, because that thr...
715 byte By
akamal at 2007-11-20 11:58:10
Hi,I'm new to c++ and am trying to decipher some code that I've inherited. In a couple of places it's doing things like this:h=GetModuleHandle("SomeDLL")ptr1=(void *)((long)SomeFunction-((long)h+0x9e41)-5);This looks to me like it's casting the function SomeFunction to a long (wh...
My CFtpConnection remove file failed, the GetLastError is 12003. Can anyone tell me what caused the failure. The ftp GetFile fucntion worked, but the ftp Remove function failed.My code is following, pConnect is CFtpConnection : bStatus = pConnect->GetFile(strSrcFileDir, strDestFile, FTP_TR...
Is it possible to put a toolbar icon on a dialog bar that has all the qualities of a regular toolbar button?
261 byte By
AlicanC at 2007-11-20 11:58:23
When I add "anything" that uses a resource file, I get this exception. I tried to change the icon of my program and I got this error. Now I get this because a multiline Label uses the resource file. How can I fix this?<br/>Note: I attached the source code.
388 byte By
warrener at 2007-11-20 11:58:34
I understand that An exception specification with an empty throw, as invoid MyFunction(int i) throw();tells the compiler that the function does not throw any exceptions. But why do we need this function? If MyFunction doesn't want to throw() something, then just doesn't throw it.What happe...
Hi,I have Cstrings as members of a couple of classes in my project. I have included the <cstring>, <string> & <iostream> headers -- however, I still get multiple cstring related errors.Below is one the code for one of the classes:struct SMAFInfoHeader{ SMAFInfoHeader (): strF...
621 byte By
zspirit at 2007-11-20 11:58:37
I have a simple linear search implemented in a listview with about 5000 items.LISTDATA * CTestView::FindItem(ST_TIME time){ CListCtrl& ctlList = GetListCtrl(); int count = ctlList.GetItemCount(); LISTDATA * pItem = 0; for (int i = 0; i < count; i++) { pItem = (LISTDATA *) ct...
101 byte By
aguess at 2007-11-20 11:58:39
hi<br/>i am looking for an exemple how to load database(tables) to a ListControl using an SQL query ?
2029 byte By
SkaR3D at 2007-11-20 11:58:40
alright so I wrote the code, and when I build it/compile the application the output window states that there isn't any errors.However when I execute the program it doesn't work as I thought it wouldhere's the code:// All about you program#include "stdafx.h"#include <iostream>usi...
1199 byte By
robalo at 2007-11-20 11:58:47
I have a simple dialog app which includes a progress indicator (CProgressCtrl). I have previously successfully managed to get this working by having a decoding program doing everything from the same class (dlg class).The difference now is that Im doing the decoding from other standard ANSI C++ class...
1468 byte By
gusto at 2007-11-20 11:58:49
i am running a MFC program on the computer HOST, while trying to debug it in anther computer main... the VS2005 professional is installed on MAIN..how ever, i get ths following message while try to attach the procedureCan not connect to "Microsoft Visual Studio remote debugger monitor" on the compu...
3393 byte By
ritvik at 2007-11-20 11:58:58
#include <iostream.h>#include <ilcplex/ilocplex.h>ILOSTLBEGINtypedef IloArray<IloIntVarArray> VarMatrix;void main(){ int nofnodes = 9; int nofarcs = 16; int arcij[9][9] = {{0, 1, 1, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0, 0, 0}, {1, 1, 0, 0, 1, 1, 1, 1, 0, 0},...