|
I'm stuck. I'm only getting this link error in Release mode. In Debug mode it's fine. And I've gone over everything carefully and can see no problems. I've also included error checking everywhere.
|
|
|
|
|
Hi,
I know that to manage the GUI of the application a separate thread have to send/post messages to the main thread to let him do everything.
But, please, help me to understand if this is possible:
It is possible to create, manage and finally destroy a window (or a dialog) all in a separate thread?
I mean a simple dialog like a custom message box dialog, or input dialog.
It can be enough for mo to display some graphic into a little DC that I like to manage with a separate thread, like an external object.
Thanks... Russell
|
|
|
|
|
I know an application
whose views will be drawn by separate event-controlled threads
I know an application
whose worker-threads do show topmost windows with a progress control
Yes, it is possible.virtual void BeHappy() = 0;
|
|
|
|
|
It should be possible. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hy everyone . I search for long time a class , derived from CListCtrl ( MFC ) , which ,
1.Order items ascendent and descendent
2.Every column ( except first one ) may be hidden from right-click menu
3.Store column order and sort order into windows registry
4.GetItemData and SetItemData must be disponible !!!!
5.Compatible in VC6
I found a class which is very close to my request : CListCtrlEx[], but have one little problem : could not use SetItemData and GetItemData ... ( I transform this project and class for VC6 , if anyone want , I can spare it ! ).
May be , anyone have some kind of class , and could shared with me ... ( If must , I even could pay for that ! )
Thank for your attention !
|
|
|
|
|
Did you see Hans Dietrich's XListCtrl class?"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I found a class that approach my needs here , but , for now , is not sorting items ... thanks for hint , I will look over XListCtrl.
|
|
|
|
|
mesajflaviu wrote: ...but , for now , is not sorting items...
Does the control have the LVS_SORTASCENDING or LVS_SORTASCENDING style?"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
No , does not have LVS_SORTASCENDING or LVS_SORTASCENDING style , I can set that , but does have any different of ? Because I like to have sort capability on LVN_COLUMNCLICK message , to sort any direction ... and that is not very simple ( for me , at least ) ...
|
|
|
|
|
CListCtrlEx uses ItemData for its internal logic. Just make the structure ITEM_DATA public/protected and use this logic in an inherited class to retrieve/set the ItemData:
ITEM_DATA* pItemData = reinterpret_cast<ITEM_DATA*>(GetItemData(index));
LPARAM itemData = pItemData->m_lParam;
pItemData->m_lParam = 10;
P.S. CGridListCtrlEx - Grid Control Based on CListCtrl[^]modified on Sunday, March 14, 2010 8:40 PM
|
|
|
|
|
Snakefoot wrote: CListCtrlEx uses ItemData for its internal logic. Just make the structure ITEM_DATA public/protected and use this logic in an inherited class to retrieve/set the ItemData:
ITEM_DATA* pItemData = reinterpret_cast(GetItemData(index));LPARAM itemData = pItemData->m_lParam;pItemData->m_lParam = 10;
P.S. CGridListCtrlEx - Grid Control Based on CListCtrl[^]
Good idea , I will try , but how can I make a public/protected structure ITEMDATA* in my class ? What you say : good question too , sorry , I'm not very advanced ...
|
|
|
|
|
Since you already have made modifications directly to the CListCtrlEx class to make it compile with VC6, then you can also make the extra modification of changing all private-keywords to protected-keywords in its header file.
|
|
|
|
|
Hello.
I have simple console application written in c++ and compiled on my computer running Windows 7. The exe is working as wanted on my mashine but not in the same way on another computer running Windows 7?
Why does that happen? Is it because Visual Studio installs additional components in my computer which the other PC do not have?
Thanks
|
|
|
|
|
corrosion190 wrote: Why does that happen? Is it because Visual Studio installs additional components in my computer which the other PC do not have?
Probably. Depending on your project settings, you may or may not need to install VC++ runtime dll's on the target machine. In particular, if your project uses MFC, project settings specifying 'Use MFC in a Shared DLL' means that the MFC runtime will be needed. (Of course, your program may require other system dll's to be specifically linked, as well; it all depends on what you're doing. In general, though, for simple programs, it's the MFC dependency that trips people up.)
The simplest way to reduce the number of dependencies is to compile with 'Use MFC in a Static Library'; this will remove the MFC requirement. To get a complete picture of your project's requirements, download the Dependency Walker[^].
For more info, see this[^]. Note in particular the section on 'Understanding dependencies'.L u n a t i c F r i n g e
|
|
|
|
|
I tried compiling with "Use MFC in a Static Library" and I got those errors:
Cpp error LNK2019: unresolved external symbol __imp__ShowWindow
Cpp error LNK2019: unresolved external symbol __imp__GetWindowTextA
Cpp error LNK2019: unresolved external symbol __imp__GetWindowTextLengthA
Cpp error LNK2019: unresolved external symbol __imp__GetForegroundWindow
Cpp error LNK2019: unresolved external symbol __imp__GetAsyncKeyState
Cpp error LNK2019: unresolved external symbol __imp__GetKeyState
Cpp fatal error LNK1120: 6 unresolved externals
Cpp warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
Cpp warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
The same result with "Use MFC in a Shared DLL"..
When I try with Use Standard Windows Libraries I get only one warning: LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
|
|
|
|
|
Then it's probably not an MFC project.
Download the Dependency Walker and use it to determine what dll's your app is looking for.
[edit]
Although, after re-reading your initial post, I see I've been acting on the assumption that the issue was dependency related, but you didn't really say that. All you said was that your app wasn't 'working in the same way' on a different machine.
So, what exactly do you mean by not 'working in the same way'?
[/edit]L u n a t i c F r i n g e
|
|
|
|
|
It's a Keylogger and cannot capture all the keys on the target machine. If I run in in XP compatibility mode it is able to get all key strokes but every time the application starts asks for permission to make changes to the computer.
In normal mode (not XP compatibility) starts with no errors, creates the log file and starts flushing to it but not all of the data it is supposed to.
|
|
|
|
|
Oh! Yeah, that's probably not a dependency problem!
It doesn't sound so much as a deployment issue as, perhaps, a UAC/permissions issue. I think for anyone to help you with this, you're going to have to provide more detailed information as to the specific nature of the failure. I've never tried to develop a key logger, but I imagine someone here has.
[edit]
Is there a difference in the user account type you're working with on the target machine? For instance, are you working with an admin account on your dev machine, but with a standard user account on the target machine? Someting like that may contribute to your trouble, if it is indeed UAC/permissions related.
[/edit]L u n a t i c F r i n g e
modified on Friday, March 12, 2010 3:36 PM
|
|
|
|
|
Thanks for the help.
When I'm home alone again with the target PC I'll check if it has the same dll-s as mine.
|
|
|
|
|
Hi Guru,
I am looking for good subroutines for interpolation a tabulate function (y[i], x[i])-> y=f(x);
Also I need a subroutine for interpolation: (x[i],y[i],z[i]) -> z = F (x,y)
Thank for share your knowledge and work.
|
|
|
|
|
|
Hello everyone,
I'm syncing contacts via SOAP to a Microsoft Exchange Server 2007.
Now the Problem is: The Data transmitted is correct (and correctly displayed in Outlook Web Access), but when I connect Outlook (only tested 2007) it doesn't show a name a display name in the address book list (only email address etc.). So when I select the contact to send him/her a mail, only a ; is put inside the address field, which is bad... But when I open the contact details, everything is there. And if I change something (e.g. add a dot after the name or so) and save, then the name and display name are displayed correctly in the address book.
This is very weird..
I'd appreciate any hints on what could cause that issue.Don't try it, just do it!
|
|
|
|
|
Alexander <su wrote:<="" div="">This is very weird..
Yes, it certainly has nothing to do with C++.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi, I am working on a project involving some 2D coordinates. When it comes to allocating a number of 2D coordinates, I code like this:
float (*coords)[2] = new float[num][2]; // num: Number of 2D coordinates, variable of type int
However, I do not know how to allocate an array of 2D coordinates? That is,
float (**coords)[2]; // I want to have it as [row][col][2], row & col: variable of type int
Am I declaring it correct? I know I can use float*** with the last layer's dimension as 2, but I just want to know if anyone is using this method. Thanks.modified on Sunday, March 14, 2010 1:57 AM
|
|
|
|
|
It could be implemented as following too :
class CFPoint
{
float m_fX;
float m_fY;
public:
...
};
{
CFPoints* pcFPoints = new CFPoint[num];
} virtual void BeHappy() = 0;
|
|
|
|