|
|
okay, i will try your suggest... thank you...
|
|
|
|
|
|
Which IDE you use for development on Linux platforms?
1. Does it support driver development or kernel development?
2. Does it provide a nice GUI for application development, for example - can you drag and drop controls from toolbars to forms?
3. Is debugging of threads, memory location and registers possible in that ?
I am an MFC developer and now want to try my hands on Linux.
|
|
|
|
|
I always used Eclipse[^] and found it suited my needs in both Java and C++.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hmm i was also thinking for the same. Earlier I had used eclipse for Java applications however Netbeans was also good.
|
|
|
|
|
I don't use an IDE for Linux development. vim+ctags+gdb combination is what works for me.
|
|
|
|
|
Same here.. I've occasionally used Eclipse, but I find the control afforded by understanding the underlying tools is worth its weight in gold.
vim/ctags/gdb all the way. We also use basic make files for all our making needs.
|
|
|
|
|
If you are coming from windows, be aware that the mechanisms on Linux regarding shared libraries are very different than Windows. By default globals in a DLL's namespace are not resolved to the same instance as they are in the caller's program for Windows.. On Linux if you have a global called 'g_xxx' in both your main program and your shared object (.so), they will be resolved to ONE instance of the variable that is global across your main program and your .so. That can come as quite a shock if you aren't expecting it.
If you are following proper O-O techniques, this will most likely not be an issue.. but if you are dealing with real-world code written by folks who aren't so disciplined, this may be an issue for you.
There are many small 'gotchas' between Windows and Linux, but this one IMO is the big one.
|
|
|
|
|
vi
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Like I *EDIT* my code for windows.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Hi all,
can anybody help me to join multiple excel file in single file using excel automation
thanks in advance.
|
|
|
|
|
I'd simply open the two documents in concern, copy the information as required. Depends on just how you want to combine the two files.. For instance - do you wish to combine the information in Sheet1 of each workbook into a single Sheet1 of a third workbook? Do you wish to add an entire worksheet from each input workbook such that the output contains as many sheets as there are input files?
My first step would be to start excel and begin recording a macro. I would then do manually what I'd like to do with automation before I stopped the macro recording and looked at the code that my copy/paste actions had created.
I'm assuming that you want to control excel using msvc? Got no idea about the necessary COM work involved, there's plenty of examples around here. You could also use your c++ code to start an instance of excel with a macro enabled workbook that would perform all of your desired work. (if you'd prefer to use some quick'n'dirty VBA)
|
|
|
|
|
You might have better luck in the Visual Basic forum, as this sounds like a job for VBA.
|
|
|
|
|
Le@rner wrote: can anybody help me to... Ok, so what do you have so far?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I am sure some of you gurus will jump up when you see this question.
Not to worry - I am just looking for a easy way to clear <b>MY registry entries </b>during debugging.
I am using WriteProfileString and associated API functions and since I am adding multiple entries into registry during development I would like to be able to clear them programmatically ( I hate this word – sounds so stuffy ) .
I am not particularly willing to use another API set, so how can I accomplish this ?
Thanks for reading
Vaclav
|
|
|
|
|
Vaclav_Sal wrote: I am using WriteProfileString and associated API functions and...I would like to be able to clear them programmatically...
So why can't you use WriteProfileString() to do this?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
By explicitly setting some of the parameters to WriteProfileString () to NULL , you accomplish the "delete" function. See the documentation[^]
|
|
|
|
|
Thank you.
I need to quit relying on my 2001 MSDN and check the web site more often.
|
|
|
|
|
I am writing a dialog box using VS resource editor. In the dialog, I put a search control that is expected to be the same as IE8's search box: a line edit control and a BS_OWNERDRAW style push-button control sitting side by side. I use the bitmap file Search.bmp in VS2008ImageLibrary directory. My problem is the bitmap is not drawn transparently. It's pink background is drawn on the button. This takes on an ugly apperance. How can I remove the pink background? Here is code I use to draw the bitmap:
case WM_INITDIALOG:
// Load image for search button
hBitmap = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_SEARCH));
case WM_DRAWITEM:
LPDRAWITEMSTRUCT lpDIS = (LPDRAWITEMSTRUCT)lParam;
HDC hDC = lpDIS->hDC;
RECT rectItem = lpDIS->rcItem;
// Draw the bitmap on button
if ( hBitmap != NULL ) {
RECT rcImage;
BITMAP bm;
LONG cxBitmap, cyBitmap;
if ( GetObject(hBitmap, sizeof(bm), &bm) ) {
cxBitmap = bm.bmWidth;
cyBitmap = bm.bmHeight;
}
// Center image horizontally
CopyRect(&rcImage, &rectItem);
LONG image_width = rcImage.right - rcImage.left;
LONG image_height = rcImage.bottom - rcImage.top;
rcImage.left = (image_width - cxBitmap)/2;
rcImage.top = (image_height - cyBitmap)/2;
DrawState(hDC, NULL, NULL, (LPARAM)hBitmap, 0,
rcImage.left, rcImage.top,
rcImage.right - rcImage.left,
rcImage.bottom - rcImage.top,
(bIsDisabled ? DSS_DISABLED : DSS_NORMAL) | DST_BITMAP);
}
|
|
|
|
|
Does the bitmap have an alpha channel (or it uses a colorkey for transparency)? Whichever it is, does DrawState support it (can't see that in its documentation).
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
Hi, I am not sure if the bitmap has alpha channel or not. It is indeed the file C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033\VS2008ImageLibrary\Objects\24bit_bitmaps\search.bmp. Would you please take a look at this file if you have VS 2008?
|
|
|
|
|
Hi,
Typically when you see those pink RGB(255,0,255) chroma key backgrounds... the pink is designated as the 'transparent' color. Supposedly a statistical analysis of random images determined that pink is the least used color. I can't remember where I read this, I think I heard it from Feng Yuan.
Anyway, you are probably looking for the TransparentBlt function[^] and pass RGB(255,0,255) as the crTransparent argument.
Since you are using a BS_OWNERDRAW style push-button... and the DrawState function [^] you would probably need to set the DST_COMPLEX flag and implement a DrawStateProc callback function[^] and inside that function call TransparentBlt[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Thank you very much, I'll try your method today.
|
|
|
|
|
I replace DrawState with TransparentBlt and it works. Thanks again.
|
|
|
|