c++

how to using smo library in c++

Hi I am trying to list all the instances of sqlserver using c++ in vs2005. How to do this using smo library in c++? give me code example. Thanks in advance.. ...

error C1854: cannot overwrite information formed during creation of the precompiled header in object file

foo.cpp(33918) : fatal error C1854: cannot overwrite information formed during creation of the precompiled header in object file: 'c:\somepath\foo.obj' Consulting MSDN about this gives me the following information: You specified the /Yu (use precompiled header) option after specifying the /Yc (create precompiled header) option ...

Advice for C#/Web developer looking to progress to C++/Software developement

I have been developing web applications in C# now for ~5 years, and since I started I’ve always wanted to learn c++ and work in a more software orientated role (as opposed to web orientated). I am getting to the point where I feel very comfortable in C# and my learning curve is starting to plateau a little as I start to reach the limits...

How to build a native YouTube Player in C++ application ?

I would like to build a native YouTube Player in my Visual C++ application, like the one in iPhone. Anyone has a hint ? Thanks ...

How come pointer to a function be called without dereferencing?

I have a weird typedef statement in a C++ program, generated by Py++. double radius(int); // function to be wrapped typedef double (*radius_function_type)(int); bp::def("radius", radius_function_type(&radius)); // bp::def is a function for wrapping What I figured out so far is that the above typedef statemnt is not of the type,...

tempnam equivalent in C++

Hi, I need to generate random names which I'll be using to create temporary files in a directory. Currently I am using C standard function tempnam() for this. My code is in C++ and would like to use C++ equivalent for doing the same task. The code needs to work on Solaris as well as on Windows. Is anyone aware of such thing in C++? Any...

Designing a Qt + OpenGL application in Eclipse

I'm starting a C++ project using OpenGL and Qt for the UI in eclipse. I would like to create a UI where a portion of the window contains a frame for OpenGL rendering and the rest would contain other Qt widgets such as buttons and so on. I haven't used Qt or the GUI editor in eclipse before and I'm wondering what the best approach would...

Using MSBuild for C++ with VS2005

Is it possible to use the latest MSBuild (.NET4/VS2010) with the VS2005 toolchain? I have a C++ project which compiles against VS2005. I'm not ready to upgrade to VS2010 while the compiler is still in beta. But I'd like to use the new version of MSBuild because it builds C++ natively and provides extension points and flexibility which t...

c++ audio conversion ( mp3 -> ogg ) question.

I was wondering if anyone knew how to convert an mp3 audio file to an ogg audio file. I know there are programs you can buy online, but I would rather just have my own little app that allowed me to convert as many files I wanted. ...

Method Calls in C++ with JNI?

Hey Folks, So i have been looking into JNI calls so i can interact with some pre written C++ programs, i dont know any C++ but am trying to learn some basics. I have just been trying to do a simple call to a method outside my JNI method but always get the following error: error c3861 'myMethod': identifier not found #include <stdio.h>...

From C++ wchar_t to C# char via socket

I am currently building a C++ application that communicate via socket to a C# application. My C++ app sends wchar_t* via socket. Here is an overview of what is send : <!-- Normal xml file-- Here is what I receive on the other side (I do a stream.read to a byte array and use UTF8Encoding.GetString() to convert the byte array to a read...

Using a .lib file from C

I am new to C/C++. I have a static library (.lib) file created using VC++. (I also have .h file for it). And I need to use this in a C program. Can you please help me doing this? Thank you, Prashanth. ...

How can I get a list of installed fonts on Windows, using unmanaged C++?

I've explored a bit, and so far I've found EnumFontFamiliesEx(...). However, it looks like this function is used to return all the charsets for a given font (e.g. "Arial"). I can't quite figure out how to get the list of installed fonts to begin with. Any help/suggestions would be appreciated. Thank you in advance. ...

What caused the "Fatal error in ccfe" compilation error in the Solaris C++ compiler?

I got this error message from the C++ compiler: CC: Fatal error in ccfe: Segmentation Fault (core dumped) What could cause it? ...

Separating a large string

How do you say something like this? static const string message = "This is a message.\n It continues in the next line" The problem is, the next line isn't being recognized as part of the string.. How to fix that? Or is the only solution to create an array of strings and then initialize the array to hold...

What is the best way to exit out of a loop after an elapsed time of 30ms in C++

What is the best way to exit out of a loop as close to 30ms as possible in C++. Polling boost:microsec_clock ? Polling QTime ? Something else? Something like: A = now; for (blah; blah; blah) { Blah(); if (now - A > 30000) break; } It should work on Linux, OS X, and Windows. The calculations in the loop are for up...

What happened to CodeGear's TBitBtn and TButton inheritence chain?

I've recently began to upgrade my RAD Studio 2007 project to RAD Studio 2009. One thing I noticed is when seemingly simple code all of a sudden failed to compile. Example Code: class CButtonPopupMenu { // Snip public: void Init( TButton* SrcButton ) { SrcButton->OnClick = OnButtonClick; } private: void __...

How can I pass an argument from a web page that is loaded inside a web browser applet in a C# program, back to the C# application?

This is a probably a dumb question but here is what I've got. A web developer has a secure login page that after a user logs into it, a database reference is made and it grants rights to a particular PDF file on our network. There is desire to have a custom locally designed application used to present that PDF file to the user, which i...

How should a C++ programmer design software in C?

As a C++ programmer, we have to deal with concepts and the relation of related concepts before implementing them to classes. However,how to design a software in procedure languages like C ? How can I deal with concepts without the help of class in C++. Related: What is the best way to plan and organize development of an application ...

Have you tried to use SQLite as the query engine for your *raw* database?

I have made a custom report generator for our database (Oracle Berkeley DB engine). Now it's time for me to add more flexibility and I am in dilemma. Do a partial or a fundamental redesign? Lets assume that I have plenty of time. I can only read the database, I don't have the right to modify it. Inspired from Query Anything with SQLi...