49,761 Topics

Member Avatar for
Member Avatar for atch

Hi, I'm trying to print to a file some data of objects and I'm trying to do this in pseudo xml format so my file would look like let's say: <node> data </node> I'm using write method: [code = C++] fstream fout("my_file.txt"); fout.write("<name>", sizeof(7)); fout.write("\n", sizeof(2)); fout.write(this->name(), sizeof(this->name()).length()); fout.write("\n", sizeof(2)); …

Member Avatar for atch
0
80
Member Avatar for dzhugashvili

Hello. I am working on a Kerberos 5 preauth password recovery tool. Part of an algorithm optimization involves checking the decrypted timestamp to make sure that it equals the year that the packet was recovered before continuing to compute a checksum. If the timestamp does not equal the year the …

Member Avatar for dzhugashvili
0
545
Member Avatar for DavidJ12345

Hi, i have written a programm in VC++ 6.0, in this i use a dll, which is created with VB 6.0. on my pc it runs well, but on other computers the class in the vb-dll isnt called. i have already installed the VB 6.0 Runtime Files on the test …

Member Avatar for DavidJ12345
0
104
Member Avatar for group256

Hi, I'm implementing a nested class and trying to implement some related functions in it. But it seems that no way whatsoever it decides to work. Could you please help me as I'm getting really exhausted. Thanks a lot. [code] #ifndef STOCKLIST_H #define STOCKLIST_H #include <string> using namespace std; typedef …

Member Avatar for kvprajapati
0
100
Member Avatar for zautner

Hello. I'm looking for some reference C++ code of IAccessible and/or IAccessible2 clients. Actually, any reference code, which deals with the major web browsers through their accessibility interfaces (in both Win and Lnx).

0
57
Member Avatar for gretty

Hello I have a problem where when if I call my 'Display' function from within my 'Menu' function it(the 'Display' function) does not work. But if I call my 'Display' function from within my 'Read'function it does work. [B]When I say it doesn't work[/B], I mean the information extracted from …

Member Avatar for m22
0
100
Member Avatar for lotrsimp12345

When you use getline(input,inputline) and you delete part of the inputline does it also ignore from the input file?

Member Avatar for m22
0
81
Member Avatar for mrinal.s2008

Hi, I have a header file in which I declare a class. A member function foo() is declared as inline. In another .cpp file, I define the function foo(). I create an object in main() (in another .cpp file) and invoke the foo() using that object. When I compile the …

Member Avatar for Nick Evan
0
80
Member Avatar for derekc4

[code] //This program asks the user for the number of tests, creates an array based on that response //the user enters his scores and then the program lists the scores in ascending order, finds the average //and then finds the average of the scores with the lowest one dropped #include …

Member Avatar for m22
0
110
Member Avatar for duka96

I'm having a problem with adding push button to a window. It is MFC document/view application in which i have some drawing in OnDraw method and I want do add button bellow the drawing. I'm trying with [code] m_wndPushButton.Create(_T("Button"), WS_CHILD | WS_VISIBLE, BS_PUSHBUTTON, CRect(100, 600, 200, 650), this, IDC_BUTTON); [/code] …

0
49
Member Avatar for duka96

How can I check if CPoint (or any other) variable has been initialized? I'm getting error for this: if(m_pointVar != NULL) saying binary '!=' : no operator defined which takes a left-hand operand of type 'class CPoint'

Member Avatar for duka96
0
106
Member Avatar for metdos

I want to add my header file as #include <vcinpl.h> instead of #include "vcinpl.h" how can I manage this? Thanks.

Member Avatar for metdos
0
176
Member Avatar for _dragonwolf_

I have tried different things to modify the following code and have been unsuccessful. The following code is to get the julian date number. I need to alter it to make it return the day number (between 1 - 366) within a given year. Can anybody help? (fyi - this …

Member Avatar for _dragonwolf_
0
242
Member Avatar for nuhendra

i have done a c++ project in banking application in a 16 bit machine but i have told to do it in a 32 bit machine . i have decided to use wxwidget but dont know how i can use . can somebody help me to change my 16 bit …

Member Avatar for Salem
0
25
Member Avatar for pltndragon

This program should accept array of integers and integers that indicate the number of elements in the array. the function should then determine the median of the array. Using pointer notation. I did research to see if someone had similar problem like me, but their was only other one, it …

Member Avatar for pltndragon
0
3K
Member Avatar for amen

i need help. i need to write a code that can extract word from string. i had use cin.getline(string,size) to get th string and strtok(string," ") to extarct token. now i want to know how can i insert the token in array because i want to use the token for …

Member Avatar for acsountharraj
0
303
Member Avatar for srilelkhahota

Hi I am tring to give gridlines in excelsheet in vc++. so if u can guide for this task i can solve this problem.

0
28
Member Avatar for gsuraj02

My program has two threads one for reading the data of the client (RXTHREAD) and putting that data of client in a structure called qstr(which contains client Ip address,message,etc), the object of this queue(put_inq) should be placed in a Structure called (que), the SXTHREAD should then pop the object put_inq …

Member Avatar for asadmalik
0
107
Member Avatar for phillipeharris

I have this code working to great now. but I am trying to pretty it up and now I cant see my cout ... Maybe a new set of eyes on it will help me. I am missing something .. I may have deleted a cout but I dont see …

Member Avatar for brian4092004
0
122
Member Avatar for naeem1973

[code]void my_Func(char source_file[1024] , char dest_file[1024] , unsigned int Exp , unsigned long Mod) { FILE *in, *out; int counter; int Ret; in = fopen(source_file ,"rb"); if(in == NULL ) { cout << "OOps! Source file "<<source_file<<" non-existing or corrupt file\n"; return; } out = fopen(dest_file ,"wb"); if( out == …

Member Avatar for Nick Evan
0
182
Member Avatar for Furtano

This is my first try with an API and HttpWebRequest Class in Visual Studio 2008 c++. I try to POST some variables to a link and want an link value from the API back, but I get an Response (not from API) : this->t_bbcode->Text = dataStream->ToString(); // [B][COLOR="Red"]System.Net.ConnectStream[/COLOR][/B] I think …

Member Avatar for Furtano
0
846
Member Avatar for walter clark

We use Windows Form1.h to interface an existing C++ program. The existing program is changed by other people and I have to update the interface. To do that I copy all folders of the older project to a different place and then introduce the changes there. The problem is, that …

Member Avatar for walter clark
0
88
Member Avatar for slatk3y

Hello, I have a problem when I try to double the length of the array if it is already full. For example, array arr has length 5, and I want to insert 7 elements in it. This is what should I get: arr = [1, 2, 3, 4, 5, 6, …

Member Avatar for slatk3y
0
102
Member Avatar for lost_scotsman

Hello all, I have what at first glance seems like a very simple problem but I have been getting bogged down with it for the last few days now and would appreciate some help. I have a series of text files to read in, and wish to convert them to …

Member Avatar for lost_scotsman
3
966
Member Avatar for sdmahapatra

I have a function under Base class and at the definition tine of this base class function I need to call another function which is define under the Derived class. how to do this?? My class declaration is below [code]class Base{ public: void showdata(double); }; class Derived : public Base{ …

Member Avatar for Laiq Ahmed
0
223
Member Avatar for 23.12.2012

<< split from [url]http://www.daniweb.com/forums/thread67837.html[/url] >> I need to print post #15. How do I do that? I can't seem to find the button. I need it just as it was written here. Also, do I need to know C++ classes in order to be able to implement the in-game classes? …

Member Avatar for 23.12.2012
0
102
Member Avatar for walter clark

I've copied an entire project/solution to another folder so I could create a different version. I made some changes in the source code that is unrelated to the Windows user I/O stuff. I've done that before, but this time, it found errors in a... form1.h instead of Form1.h Where did …

Member Avatar for walter clark
0
151
Member Avatar for Shaitan00

For the past 10 years I've been using NetShareGetInfo() to retrieve the PATH for my shares, this was done as follows: [Code] SHARE_INFO_2* share_info_2 = NULL; NET_API_STATUS status = LM_API.NetShareGetInfo ( (PWCHAR) (PCWCHAR) WZS (cszServer), (PWCHAR) (PCWCHAR) WZS (cszShare), 2, (PBYTE*) &share_info_2 ); return share_info_2->shi2_path; [/code] Up until a few …

0
79
Member Avatar for headedtomexico

Man, I hate having to get you guys to hold my hand through all this, but I've run into another problem. I have my ODBC connecting to a MS access database. This is all coded into a library that gets injected into a video game, and then macro commands call …

Member Avatar for Ancient Dragon
0
101
Member Avatar for goody11

I can't figure out how to make my save function append to the txt file it always overwrites. Also, I'm trying to figure out how to make each set of words on a newline in the text file. Here is the function: [code] BOOL SaveTextFileFromEdit(HWND hEdit, HWND hEdit2, HWND hEdit3, …

Member Avatar for bdusablon
0
124

The End.