|
If you start to teach i can start
Regard's
Kaushik
|
|
|
|
|
I can help you like a friend or a classmate but for teach you need a teacher.;)
|
|
|
|
|
Hello, I'm a beginner in C++ programming, and I have realized a little app showing the day's appointments, or birthdays; a calendar, shortly.
My app starts minimized in tray (I follow the accurate tutorials on this site), but I noticed that, differently from window minimized, system memory used is the same as the open window, in this case some MBs, while minimized my app uses only 600KBs.
Is there a trick to reduce memory usage in case of application running in tray? Or, the same, minimizing the window but at the same time moving it to tray? Thanks, Simone.
|
|
|
|
|
Hi,
What do u think is faster to compare a secuence of BYTES that can has [192, 4096] positions?
My boss did it with two BYTE BufferX[4096], one to hold the actual project code and the other to hold the PLC saved code in order to compare both of them on the fly. And he has said that he wants it to be done in another way because the performance was very slow.
The secuence of bytes has a logical strructure and I have already the code to write it in a file, I write using tokens of different length according to the meaning and the configuration of the actual project. And the Plc should have the same bytes in the same order.
I thought to make it using the functions I already have (and work) to create an "AktualProject.pc" and get the secuence of the PLC and create an "OnlineProject.pc". Then open both of them and compare byte per byte doing an iteration till the end of the files. When a difference come... error.
But a partner has told me it may be faster with DAO. Writing my the actual code to a row (or a column), the online code to another row (or column, I don't know what will be better) and then compare the contents of both using database requests.
What do you think it is better? My boss priority is quickness of the programm, but I have never used DAO before.
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
|
|
|
|
|
Nelek wrote: What do you think it is better?
It matters not what we think. What matters is the empirical data that you gather to appease them both. You can't use here-say when comparing metrics. Code up both ways so that you can confidently say which way performs better.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The problem is that I don't know about DAO. Because of that I have asked.
If DAO is faster then I will learn and try it, if more or less are the same, I can use what I already know and don't delay it more than strictly needed.
Anyways thanks for answering.
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
|
|
|
|
|
Nelek wrote: If DAO is faster...
Whether it is or isn't, you won't actually know until you code something up to test with. DAO may be faster in scenario A, but slower in scenario B.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hey guys,
Can anybody tell me how to create a dll that ca be successfully fully loaded in some other language like vb and can be used there.
Regards,
Pankaj Sachdeva
"There is no future lies in any job"
"but"
"future lies in the person who holds the job"
|
|
|
|
|
I have no idea (yet), I need to learn about DLLs too, So I was looking in the DLL section here in codeproject.
I think This link[^] and the other 3 articles of the same group can help you.
Is about writing a C++ from VC++ and VB. It has information about compatibilities and so on. Maybe is not what you exactly look for, but it has lot of comments/points tht will help you.
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
|
|
|
|
|
Have you tried to make a atl com dll
i have tried by i am unable to use it successfully
like some of the functions are working and some other are not do you have any idea
Regards,
Pankaj Sachdeva
"There is no future lies in any job"
"but"
"future lies in the person who holds the job"
|
|
|
|
|
no sorry, you are in a more advanced position as me at the moment
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
|
|
|
|
|
u will have to use "_stdcall" calling convention while exporting the function from DLL.
|
|
|
|
|
Hello,
In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 .
But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this.
Thanks in advance
Ratheesh
|
|
|
|
|
I don't know if I understand everything, but your seems a problem related to a bad initialization of that control.
Enable it in the VS IDE or programmatically using CWnd::EnableWindow() or CWnd::ShowWindow(SW_SHOW)
Russell
|
|
|
|
|
Thanks for your response. In a property sheet contains 5 tabs. First tab is General, this tab has the spinbuttoncntrl. When I open the application at firsttime, it enables and can able to increase and decrease the values.
But if i close the application and open it again, it shown as disabled.
Note: The 2nd tab also contains 5 spinbuttoncontrols, there i made some changes like increase and decrease also it enabled all the times. How?
Please assist me to resolve this issue.
|
|
|
|
|
rajaratk wrote: When I open the application at firsttime, it enables and can able to increase and decrease the values.
But if i close the application and open it again, it shown as disabled.
This makes no sense. Why should one "open" be different than any other "open?" What are you doing when the application is opened? When that tab is activated?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
As David says, this makes no sense on its own.
Are you confusing Close / Open with Minimise / Maximise?
If not, then some action in your code is doing different things. Do you save values? Do a search in your code for the control ID of the spinbutton and see what you do with it.
Unless someone (ie, YOU) disables the control, it will be at whatever state it is set to be in the dialog resource. You need to track down where you disable it, and see why that is different in the two scenarios.
Iain.
|
|
|
|
|
Hello guyz,
I want to convert a CString to WCHAR but I don't know how to.
Can anybody help me with this?
Any comment will be much appreciated.
Thank you.
|
|
|
|
|
TooShy2Talk wrote: I want to convert a CString to WCHAR but I don't know how to.
It depends on whether you have defined _UNICODE in your application or not. i.e if _UNICODE is define, the CString internally keeps a wchar* itself. so you can simply copy from cstring to wchar_t[] usinf wcscpy() fucntion. If _UNICODE is not define, CString will be internally keeping a char* pointer and you have to covert this char* to wchar_t[] using MultiByteToWideChar() API.
|
|
|
|
|
CString -> CStringW ?
Russell
|
|
|
|
|
If Unicode is not defined, check out the A2W() macro. If Unicode is defined, you can simply use _tcscpy() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Sindse ATL 7.0 and MFC 7.0
You can use CStringW (or CStringA )
This code is valid for both Unicode and Multibyte:
CString cMyCString("Test");
CStringW cMyCStringW( cMyCString );
(LPCWSTR) cMyCStringW;
|
|
|
|
|
I am making a toolbar for a website. initially the toolbar is normal and when the user login the toolbar changes and takes the setting for the logged in user as is in the case of Yahoo.
If the user does not work on the website for 18 minutes i.e. if he takes no action he should be logged out and the toolbar should be in its initial state.
Now the problem for me is I am not able to track that no action has been taken on the website and the session of 18 minutes has expired and because of which I am not able to change my toolbar as a aresult of which what happens is that even if the user is logged out of the site after 18 minutes still my toolbar is having the settings for the logged in user.
I am using WIN32 ATL and WTL.
Please help me what to do.
Thanks in Advance.
Dhiraj Kumar Saini
|
|
|
|
|
I think this question would be better asked in a different forum, as it's not really a C++ coding issue - more of a html / webserver question.
Asking over in the Web Development forum would get people who know more than me looking at it!
Iain.
|
|
|
|
|
I have worked in both matlab & VC++ , the same pgm takes so much time when it runs in matlab than in VC++. one of my pgm runs 8 hours in matlab but just 6 mints in VC++.... y is it so??
|
|
|
|