49,761 Topics
| |
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)); … | |
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 … | |
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 … | |
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 … | |
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). | |
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 … | |
When you use getline(input,inputline) and you delete part of the inputline does it also ignore from the input file? | |
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 … | |
[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 … | |
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] … | |
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' | |
I want to add my header file as #include <vcinpl.h> instead of #include "vcinpl.h" how can I manage this? Thanks. | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi I am tring to give gridlines in excelsheet in vc++. so if u can guide for this task i can solve this problem. | |
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 … | |
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 … | |
[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 == … | |
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 … | |
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 … | |
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, … | |
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 … | |
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{ … | |
<< 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? … | |
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 … | |
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 … | |
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 … | |
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, … |
The End.