|
What do you mean exactly ? Can you give more information ?
|
|
|
|
|
Actually I have a sample projects called mitumori and this projects also have two file (that is see on the file view tab named cpdf and jpeglib2 file. This project convert the *.npr file into the *.pdf. These files are related to each other i.e. there is a dependency between them. The problem how do they combine the project into one. Actually mitumori project use the files of cpdf and jpeglib2. I could not understand how do they use the other projects file. The main problem I need to implement the cpdf and jpeglib2 in my project. how can I do ?
|
|
|
|
|
Do you refer to linking together two libraries (LIB -files) in a third project?
Or are you talking about DLL -files?
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
keyto wrote: How can I combine two projects and make them single? these two files are dependent on each other.
are you intended to say two class is depend on each other? if yes, than use the technique known as Forward Decalration like this:-
class a;
class b
{
a aObj;
public:
a(){};
};
class a
{
b bObj;
public:
b(){}
};
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I was trying to make a self extractor application. I have seen a code given on code project(http://www.codeproject.com/file/self_extractor.asp")but was unable to get how the programmer has corelated 2 exes together.....and how he had made shared files. Can anybody help me in this and is this possible to make a self extractor with one exe
thanks in advance
|
|
|
|
|
Have you spoken with the autor of the article?
Have you tried it with winzip?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
ya i have tried to talk with him but didn't got any reply.........
i want to make it my own ......
how to do it.........
|
|
|
|
|
Dont know, i ha ve used the NSIS (Nullsoft Installator Systems), but a problem (that I think is my fault somewhere in my programm) is easy and fast.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
I know this should be known by all C++ programmer , but i never came to this situation before ...
problem is i want to define const static CString variable in my class ...
so can anyone help me in how to define and initialize such a member ...
ThanX,
Perry
|
|
|
|
|
paresh_joe wrote: problem is i want to define const static CString variable in my class ...
so can anyone help me in how to define and initialize such a member ...
class A
{
public:
const static CString csAString;
};
const CString A::csAString = _T( "Nibu" );
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
i have already created an edit box dynamically using the create function. now my requirement is when i type something on the edit box the size of the edit box should increase as the sentence gets bigger? what needs to be done for this?
|
|
|
|
|
You have two choices:
- Subclass the edit control.
- Handle the EN_UPDATE notification in the edit control's parent.
Steve
|
|
|
|
|
will u be able to explain a little more.?
|
|
|
|
|
Chandrasekharanp wrote: will u be able to explain a little more.?
search sublass here at CP, you will get answer to yo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: search sublass here at CP, you will get answer to yo
And for more explain google is a option.;)
|
|
|
|
|
Hamid. wrote: And for more explain google is a option.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Adding to the answer already given... You can change the size with SetWindowPos(...)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
One way to do this is to change the size of the editbox dynamically using SetWindowPos() API.
Use this API in WM_CHAR or EN_CHANGE notification. like below.
INT Widht =0;
INT Height = 10
case WM_CHAR: ( or EN_CHAGE)
SetWindowPos(hWndEdit,0,X,Y,Height,Width++);
break;
above code will work. But you need to take care when to grow the editbox and when to shrink it. ( i.e if someone press backspace or delete the editbox should shrink. )
|
|
|
|
|
Hi Developers,
I have to write a map class in C++.I know there is one stl map class in C++ but i have to write my own which should be as good as stl map class.
So how should i get started ? Is there any example program which could be helpful to me to get on with it ?
ta
James
|
|
|
|
|
Why not just look at the stl map source code?
|
|
|
|
|
Maybe because it is almost undecypherable ?
|
|
|
|
|
Cedric Moonen wrote: Maybe because it is almost undecypherable
sometimes i fails to understand the code of STL, though i am amid STL Lover. i feel it's is so optimized, that only compiler could understand.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I have a custom class derived from MFC CListCtrl. I create one list control that uses my derived class and has two columns.
Now the problem is, I'm coloring each cell differently using NM_CUSTOMDRAW and I need the color to "save" on each cell so that when a cell is redrawn after being initially colored, its color will remain the same.
I can use SetItemData to set the color for an entire row, but I need some way to set the color for each row/column combination (i.e. each cell).
Worst case scenario I could create a struct with a color value for each cell in a row each time a new row is created and use SetItemDataPtr to point to the struct, but I really don't want to do that.
So in short, does a CListCtrl object have an unused data structure for each cell that I could use to store my COLORREF variable?
Thanks!
KR
|
|
|
|
|
KellyR wrote: but I really don't want to do that.
why not?
|
|
|
|
|
I don't want to worry about memory management with allocating and freeing memory for the structs. It's just easier to use a value that already exists on one of the cells. I think I can use the lParam of an LVITEM structure by calling SetItem with iItem = row and iSubItem = column but I'm not sure. I'm going to try that.
KR
|
|
|
|