Hello,
I basically have a script in c++, and want to convert it to vb6. The help i need is something like this
dim SomeString as String '--> what is the c++ equivalent
#include<stdio.h>
'// what is the vb6 equivalent
#define MAX_BUF_SIZE 1024
if i can get a syntax comparison sheet sort of that compares very well, i'ld be ok
thanks
...
Hi guys
I want to use QCombobox as a the Combobox of Swing in Java. So i need to use Model for holding my object. How can i hold my object in QCombobox. (I think that I should hold data in Model because QCombobox was designed according to MVC Pattern ... )
Any help will be appreciated.
...
Hi,
I am using working on a c++ application in Visual studio 2008
I have built my project with Maximize speed(/o2) (From Properties -> configuration properties -> c/c++ -> optimization -> optimization)
Unable to watch the variable values while debugging the code. Pls help.
...
When I build my Visual C++ Solution ( 2005), I get the following warnings
1> c:\winddk\7000.0.winmain_win7beta.081212-1400\inc\api\commctrl.h(678) : see previous definition of 'ImageList_Read'
1>e:\xml parse\development\gui\h\wtl4mfc.h(6) : warning C4273: 'ImageList_Write' : inconsistent dll linkage
1> c:\winddk\7000.0.w...
Ok, so I have some problems with C++ iostreams that feels very odd, but it is probably defined behaviour, considering this happens with both MSVC++ and G++.
Say I have this program:
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout << a << endl;
cin >> a;
cout << a << endl;
return 0;
}
If...
I have created a service in win32,c++ . I am able to create the service , but when I try to start it, it gives following error.
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
What is the best way to get to the root cause, since this error message is not conveying anything...
I have a custom container class for which I'd like to write the iterator and const_iterator classes.
I never did this before and I failed to find an appropriate how-to. What are the guidelines regarding iterator creation, and what should I be aware of ?
I'd also like to avoid code duplication (I feel that const_iterator and iterator sh...
The following piece of code seems to unreliably execute and after and undeterministic time it will fail with error code 234 at the RegEnumValue function.
I have not written this code, I am merely trying to debug it. I know there is an issue with doing RegEnumValue and then deleting keys in the while loop.
I am trying to figure out f...
Hi SO,
for several reasons I need to port a C/C++ unmanaged project (VS 2008) to C# (preferably .net 3.5).
I'd need to know:
whether, by any chance, exist some conversion-helping
tools; let's say something
translating the code syntax and
asking you verifications/modifications for each
problematic point (I guess I'm dreaming...)
where...
Currently our code uses a for-loop for filling a buffer holding a Unicode string with some Unicode character value (of type wchar_t). There's wmemset() function in Visual C++ using which we could replace a loop with a single function call in that code. However we're concerned about portability - we'd like to leave code as portable as pos...
I have tried creating a named pipe but getting GLE 5 (access denied Error)
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
#include "iostream.h"
//#define PIPE_ACCESS_DUPLEX 0x00000003
//#define PIPE_ACCESS_INBOUND 0x00000001
//#define PIPE_ACCESS_OUTBOUND 0x00000002
#define BUFSIZE 512
int main()
{
...
hello everyone,
i was wondering if there was a good debugger you can recommend for C++.
thanks for helping
...
I've got a number which is less than 500,000,000 and I want to factorize it in an efficient way. What algorithm do you suggest? Note: I have a time limit of 0.01 sec!
I've just written this C++ code but it's absolutely awful!
void factorize(int x,vector<doubly> &factors)
{
for(int i=2;i<=x;i++)
{
if(x%i==0)
{
dou...
If you've got a codebase which is a bit messy in respect to coding standards - a mix of different conventions from different people - is it reasonable to give one person the task of going through every file and bringing it up to meet standards?
As well as being tremendously dull, you're going to get a mass of changes in SVN (or whatever...
Hello guys,
I was trying to compile a short example program ( 134 lines ) making extensive use of templates, and got nothing less than 500 lines of mysterious code really deep inside the template library, which is quite annoying and useless.
My point isn't how to solve this issue (most probably add the appropriate path to the project.....
Here I am trying to implement a class for complex numbers using books and the Internet. Here is the code:
#include <iostream>
#include <ostream>
using namespace std;
class Complex{
private:
float re,im;
public:
Complex(float x,float y){
re=x;
im=y;
}
float Re() const{
...
Hi there,
I have built a SDI splitted window app (VC8- MFC).
In the bottom pane of the splitted window I want to display a .CHM file (HTML HELP file).
Any expert knows how to do that?
Using the call:
*::HtmlHelp( m_hWnd, _T( "Sample.chm" ), HH_DISPLAY_TOPIC, NULL );*
will just pop up a new window....but I wnat to embed the HTML help...
Hello
I want to develop a BADA application which will print the message Helloworld.I have downloaded BADA SDK.It could be done in BADA IDE but i want to compile and run it using command prompt.Now for that we need to compile it using GCC tool chain i think.My Helloworld code is in C:Helloworld.So i have changed directory to it and also h...
I need some recommendations of books/links that discuss design on multi-threaded data structures for an intermediate level C++ developer who knows STL/Boost and pthreads individually but would now like to blend these 2 knowledge streams.
Any help appreciated.
...
Hi,
How can we call "C++" class member functions in 'C" code ?
I have two files .cpp, in which I have defined some classes with member functions and corresponding ".h" files which has included some other helping cpp/h files.
Now I want to call these functionality of CPP files in "C" file.
How can I do it.
Thanks
Priyanshu
...