|
If they are jpegs, you want to make an mpeg, realistically. Did you try google ?
|
|
|
|
|
I would like to obtain data from an Excel sheet and write it out in a special XML format for another application to read. I need to do some processing on the Excel data.
I have been searching for examples of a simple Visual Studio 2003 or 2005 MFC example to get me started, but no luck so far.
All I have found is a C#, and have not done C#.
Any links would be useful.
Many thanks,
Andy.
|
|
|
|
|
try this
Otherwise search "Excel Automation" on google
|
|
|
|
|
Andy202 wrote: Any links would be useful.
Try here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Give me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory
9ine
|
|
|
|
|
|
I thought codeproject was my friend
9ine
|
|
|
|
|
|
9ine wrote: e me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory
you are lucky.. MSDN provided you example in CFileFind::FindNextFile()
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
no MFC only native windows API please
9ine
|
|
|
|
|
Hello everyone,
I am wondering whether the generated binary code on Visual Studio integrated mobile simulator is the same as that of real device (for example, real HP ARM iPAD)?
Is the answer to the question (binary code on simulator is the same as that of read device) the same to all Microsoft mobile development IDE -- embedded VC 3/4 and Visual Studio 2005?
thanks in advance,
George
|
|
|
|
|
Hi all,
Could anyone please tell me what the following means / does ??
I'm refering to the if - endif part...
<br />
#if 0<br />
.. code doesn't matter ..<br />
#endif<br />
Thanx in advance
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
It's a precompiled directive, which means that it will be evaluated before the compilation starts. In this case all the code in between will be 'discarded'. Here it is not very usefull (the programmer probably wanted to test a piece of code and use this to 'remove' it from compilation quickly).
|
|
|
|
|
Thanx alot Cédric ... Never knew that...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
« Programm3r » wrote:
#if 0
.. code doesn't matter ..
#endif
that are compiler directives.. as you see if you pass false in if statement nothing will be executed same here is also goign
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Thanx alot ThatsAlok ...... Appreciate the help
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
In addition to the other responders, pre compiler directives are very usefull.
Lets say yo wanted a common code base for different eivironments you would use #ifdef #elif #endif commands.
So, for eaxmple,
#ifdef WINDOWS_NT_4
// do NT 4 specifc code
#elif
// do code for everything else
#endif
You of course need to compile different modules then for NT4, and everything else, putting the WINDOWS_NT_4 define in a header file, or make file.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
It is a preprocessor directive. The code in between #if and #endif only gets passed on to the compiler if the preprocessor evaluates #if to true.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
currently, i have a private function in cat named privateFun.
i would like to have this function "private" to all except dog's action member function.
by using the following approach, all the dog's members can access all the cat's private members.
// cat.h
//
#ifndef CAT_H
#define CAT_H
// forward declaration.
class dog;
class cat
{
private:
friend class dog;
void privateFun() {}
};
#endif
//
// cat.h
// dog.h
//
#ifndef DOG_H
#define DOG_H
#include "cat.h"
class dog
{
private:
void action()
{
cat c;
c.privateFun();
}
};
#endif
//
// dog.h
however, i would like to have ONLY dog's action member function to access cat's private members.
i try the following approach but can't work.
// cat.h
//
#ifndef CAT_H
#define CAT_H
// forward declaration.
class dog;
class cat
{
private:
friend void dog::action(); /* HERE IS THE CHANGES AND COMPILATION ERROR HAPPENS HERE. */
void privateFun() {}
};
#endif
//
// cat.h
// dog.h
//
#ifndef DOG_H
#define DOG_H
#include "cat.h"
class dog
{
private:
void action()
{
cat c;
c.privateFun();
}
};
#endif
//
// dog.h
Of course, i would get the following compilation error:
c:\Documents and Settings\YC Cheok\Desktop\aaa\cat.h(10): error C2027: use of undefined type 'dog'
However, I just cann't include the dog header file into cat. This will introduce circular include problem.
Any advice? Can I have something like member function forward declaration? Thank you very much
|
|
|
|
|
You can declare the other cat function as protected.
In that case, the dog can not access to that function
|
|
|
|
|
Hi,
well, it's for sure a simple problem for an advanced MFC user, but I don't know how to solve it
Here's what i want to do: I want to create a MFC controls dynamically to my MFC dialog without the use of the resource editor. E.g. a simple static text at the coordinates 0,0 with text on it? The reason I'm asking is that I have to add 120 leds/labels to a dialog and I don't want to make it by hand, because if something changes, I have to redo everything, Or if I want to add tabs later.
Thanks for your help.
|
|
|
|
|
Hi,
This is simple window - you can add the new e.g. by CStatic class (derivied from CWnd):
CStatic * myStatic = new CStatic;
myStatic->Create( _T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(0,0,150,15), pParentWnd );
-----------
Mila
|
|
|
|
|
Mila025 wrote: M
Mila025 wrote:
CStatic * myStatic = new CStatic;
myStatic->Create( _T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(0,0,150,15), pParentWnd );
don't forget to delete the MyStatic object
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
naturally
kindest regards
-----------
Mila
|
|
|
|
|
Thanks for you help
Now to the next problem
I'm using the following controler: http://www.codeproject.com/buttonctrl/LedButton.asp[^]
It's an LED button, which interhits from CButton. I can actually create a CButton dynamically, but it doesn't work with this CLedButton class. If anyone has five free minutes, it would you could say why it doesn't work this this control
|
|
|
|