Alright, I know I asked about collections before, but I am still confused about them. I am trying to plot a circle using collections, and then, remove just that same circle. I'm sorry if it's vague. :o
I can convert a character array as an integer with the function atoiBut how can I convert a string as an integer?I know that this code will not work. But can any one give a suggestion to run this code with out changing the type of mVar- variable.#include <string>#include <stdlib.h>...
Program is to check the users input for social security number. Need to make sure it is all digits, no letters, and need to be nine digits long. My problem is when checking the length of the ssn it turns into an infinite loop. Is there a different way to check the user input?WHERE ITS CALLED IN...
Is it possible, and allowed, to use and modify values and things through regedit in an app?
hi I need one explain to me this c++ code it clinte code send query to server as xml and reseve responce as xml the point that not clear to me how extracting data ******************************************#include <windows.h>#include <winsock.h>#include <iostream>using namespac...
672 byte By
tonyrueb at 2007-12-5 11:57:14
i am writing a C++ program to compute if a number is prime or not. i basically have a for loop set up. it tests all the numbers from 2 to the number specified by the user. it can take a little while but thats ok (i'm not worried about speed) however i can get an overflow error. i type in a...
I made this Replace function -- Speed is the first priority in this case -- So can can some one suggest any suggestions -- I also think that the one I made Is just wrong [edit: It works prefect thou]- thx for your future helpchar ostr[] = {""};char* _replace(char* source_str,char* search_str,cha...
Hi all,<br/>Is any body know about hashing?<br/>I am a very beginner, and i want to learn the hashing myself, and i have look for many site, but there is not much info for me to study. Is there any recommend link or book for me?<br/>Thank Your for reply
Alright, here is a my question. I know how to make a single windowed application, but how would I make a multiple windowed one? I am wondering whether I would put the code for another window in a new c++ file, and then if that is the case, or however else, how would I open that window?[By the wa...
201 byte By
Yoosha at 2007-12-5 11:48:28
Hi friends,<br/>im looking to know if its possible to change the avatar that is on Yahoo! Messenger to some specified avatar.<br/>if its possible, Plz help me to do this.<br/>Tnx, regards :).
/**************************************************************************************************** File name :lab11_driver.cpp** This program is going to take two strings (one using the c-strin class and one using a string class* and compare the two outputing if equal, larger and so...
It is said that c is a programming language that can interact with the hardware as it is close to asssembly language. But I have'nt got any examples. Can we eject cd/dvd drive using C code as in Visual basic?
How would I be able to save the contents of the form itself as a bitmap when some one clicks a menu option? Like open a save dialog and have the person save it as a bitmap. Thanks. :D
Can someone tell me what is wrong with this line in a dialog resource of mine?<br/>CTEXT "Some Text\n\r",IDC_STATIC,16,18,144,33
65 byte By
mar_zim at 2007-12-5 11:40:26
Guys any idea on how to set the text color of the toolbar button?
Why do I get this error message:<br/>`hwnd' undeclared (first use this function) <br/>for this code?<br/>DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);<br/>It seems to work fine for other apps I use it in...?
First off I've been learning C for a very short time, so I'm stupid, lol.Anyhow all programing I'm required to do is for embedded applicatons. I've been playing with some code from one of are insturments were developing at work to pratice on. I've ran into something I...
I've read up on reference types but still don't understand when to use a hat ^ and when not to.If I declare an integer variable, I use:int a =0;If i declare a string it's:String^ myString = "this";Does anyone have a good saying to clue as to when you're supposed to use the ha...
I've built a tablelayoutpanel that houses several textboxes that are added dynamically. I need to add event handlers to those dynamically. How do I do that. I'm using a 2dimensional array to add the textboxes so they're id'd as textbox[a,i] This is a first for me so any help...
100 byte By
high6 at 2007-12-5 11:36:07
Whats a good c compiler? I downloaded devC++ dont know how to setup. or where to get the C includes.
398 byte By
LaxNasty at 2007-12-5 11:34:36
Hello,I have a question about random integers. My instructions are to write a code that generates a set of random integers, from 0 to 9, and when the numbers reach 0, it stops.Underneath the row of random integers, it should say how many numbers it took to get to 0. How do I do this? The outp...
195 byte By
fundean at 2007-12-5 11:31:41
is there any way to send data obtained in a C++ console program directly to the printer?<br/>or do I need to write to a text file, then print it using a windows menu command?<br/>thanks
Hi all,I want to create a data connection in my MFC application, as followsADODB::_ConnectionPtr pConn;Import the dll,#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \no_namespace \rename( "EOF", "adoEOF" )in the stdafx.h header file. But it gives the compile error,'ADODB...
596 byte By
p_c at 2007-12-5 11:29:50
I have an application which I built in vb.net in visual studio express and would like to run as an unmanaged application, which I believe visual studio express c++ can do. I have virtually no knowledge of c++ but after some reading and trial and error I have rebuilt the application as a c++ wind...
357 byte By
nci at 2007-12-5 11:28:43
Hello allI have a file with unicode characters in the filename. However, i cannot open the file using normal file opening code in C. Yes I can simply rename the file, but I need to know how I can open the file in C code without renaming it, as there are many other files that I have with unicode...
93 byte By
kidz14 at 2007-12-5 11:25:12
- I Will Post The Final Code For Others Who Need It Once My Project Has Been Marked. Sorry! -
Hi all,I have a struct define as follows, defines on the 32bit machine.struct pac_cont { unsigned int des_list; unsigned int mem_ID; unsigned char dm_con; unsigned char ser_ID; unsigned short act; };This is one of very important part of my application, and I want to keep this structure as it...
2248 byte By
Motoidar at 2007-12-5 11:22:23
Hello. The function that is supposed to print the array in reverse order is down at the bottom. It is called printArrayRev and I can't seem to get it to work properly. Please help me. Thanks.#include <fstream>#include <iostream>#include <iomanip>using namespace std;const i...
2144 byte By
Xare at 2007-12-5 11:22:02
-------Configuration: Direct3D9Functions - Win32 Debug-------Linking...Direct3D9Functions.obj : error LNK2001: unresolved external symbol "struct IDirect3D9 * Handle" (?Handle@@3PAUIDirect3D9@@A)Direct3D9Functions.obj : error LNK2001: unresolved external symbol "void __cdecl Log(char *,...)" (?L...
What are they? I'm working on an app that requires me to plot a single point, and then get rid of it... What do they have to do with this?
2797 byte By
caffeine at 2007-12-5 11:15:58
Hi all,I have a VBA function that passes a pointer to ActiveSheet and two Excel ranges to a C++ function contained in a DLL. The VBA function is:Private Declare Function runTestMLE Lib _ "Office Automation 2.dll" ( _ ByVal wks As Worksheet, ByVal rngVars As Variant, ByVal rngObjF As Vari...
Hi all,I want to use some calculated values from different functions inside another functions. I'll explain it inthis way,Say I have following functions.void functionOne(int x, int y){// Do some work and find some values,// say int a, int b// Need to send those values to mainCal()}void func...
6559 byte By
Motoidar at 2007-12-5 11:14:33
Hi. I need help making an initializing constructor for ExtStudRdType. I already have a default constructor, but I would like to make another as well, similar to how StudRdType(int i, float e1, float e2, float e3, float a); for the baseclass is. The program is split into 5 files, but you guys sho...
This should be good:I want to have an array of int (values 1-9) and choose a number at random from that array and then delete that value. Then resize the array and continue until no more val's in the array(array size 0).Currently:I have a managed array int's 1-9. I will choose a number...
276 byte By
Paul M at 2007-12-5 11:11:19
I guess i am having some problems with an array of sockets, never done much with them like this. I was just wondering how to go about it, i need to load like 5 and make them connect to the same server. Its for a chat client i am making. Anyone have any links or good advice :)
Hi all,Using my application I've found a file path anywhere on my machine and store the full path in a CString variable. That is full path, like this,G:\Work On\CPP\001_002_003.txtWhat I want to do is, find the name of the file(without the extension), 001_002_003 according to my example. Th...
Hi all,On my first click event browse a file and store the file path in a CString, as follows.void CSRFDBDlg::OnBnClickedCtrl(){ CFileDialog dlg( true, NULL, _T("*.*"), OFN_FILEMUSTEXIST|OFN_HIDEREADONLY|OFN_NOCHANGEDIR, "textfiles(*.*)|*.*|*.*" ); if(dlg.DoModal() != IDCANCEL) { CString srf_Te...
508 byte By
Icyculyr at 2007-12-5 11:04:26
I need to Include things (such as strings, buttons, and so on)Can someone list me everything to include that I will need?I have a Win32 Project (Windows Application) that I am makingI understand the language and what it's doing, but intellisense, does nothing, like in VB I type Public dim A...
1587 byte By
caffeine at 2007-12-5 11:03:36
I read a MS article that outlines how to pass arrays from VBA to C++: http://support.microsoft.com/kb/207931I'm using the "pointer method" (scenario 1) where you pass the first element of the array by reference to a C++ function that expects a pointer. The 1D case is pretty straight-forwar...
564 byte By
Icyculyr at 2007-12-5 11:01:31
Ok, I would like to know how to declare functions and variables in Visual C++...I know this oneint tempInt = 0;however, no others work, there's no such thing as a button, a string, nothing LOL?functions>>public: static int I2S(String^ str) { }how should I declare a function?I...
NMAKE : fatal error U1052: file 'mdiNotepad.mak' not found<br/>Stop.<br/>Error executing nmake.<br/>Whenever I try to compile my code, I get this error... Any ideas how I can fix this? I am using VC++ 6.0 Enterprise
Hi all,The topic is my question. Ill explain it more. Just look at the following C++ code segment,if(number_1 == number_2);{ std::cout << number_1 << " == " << number_2 << std::endl;}Note that, I have put a semicolon just after the right parentheses. Its not a syntax erro...
552 byte By
Icyculyr at 2007-12-5 10:59:04
Hi,Question 1: why is there no error thing, to show me my errors? and how can I fix thisQuestion 2: why do I have to do -> on objects (labels, timers), . on variables, and :: on some other things, to activate intellisense, I can not stand it!!!most of the time intellisense does not show, how...
Hi all, I want to use a dynamic buffer in one of my application. I'll explain it in this way. Depend on one of my calculation I found a number(int value), and I want to define a buffer size to that value. Then after doing all the required process need to clear that buffer size and define it...
On the case WM_RBUTTONDOWN: I want it to display a rightclick menu that has an option that quits. Any Ideas how?
75 byte By
Shaolin at 2007-12-5 10:56:45
Hi Guys,<br/>How would I make a dot with a size of 5 pixels in OpenGL?
Alright, I've been using VC++6.0 for a while, but I was wondering if there was a stand alone c++ compiler, not a source editor or anything, just to compile my programs. I was looking at gcc, but I think it requires the command prompt.
3307 byte By
Xa0z at 2007-12-5 10:56:10
Hey there fellow programmers,I have a slight problem which I can't manage to solve. I've used VB most of the times over the years so I suppose I'm rather spoiled with the way it manages windows. Now that I'm building a multithreaded service and stability became an issue, I ch...
813 byte By
Ivenesco at 2007-12-5 10:54:46
Hi!I wrote this code to test "~" operator, and there is one problem:When I use this:#include <iostream>int main(){ unsigned short i = 1234; std::cout << i << "\n"; i = ~i; std::cout << i << "\n"; std::cin >> i; return 0;}Variable is 'unsigned'.Everyt...
1383 byte By
nebrom at 2007-12-5 10:53:39
i havenot good knowledage but i always try to have good skill ofprogramming by asking people even for those who are beginners becuasei believe that asking is one way to solve a problem and to develop my skill.that is why i am here to ask for you guys infact 4 ladies too.i am have a small code w...