|
Simple question for a simple answer...
Can I write a HLP file with VC6? (from AppWizard for example)
Tell me how?
Thanks in advance...
Hello World!!!
from Raphaël
|
|
|
|
|
I have done this in the past by editing the afxcore.rtf and afxprint.rtf files manually in either notepad or Visual studio (make sure you open the files as text, not auto). Once you have made changes, you can rebuild your helpfile using help workshop.
Helpworkshop can be found under VS ^.0 -> Tools->Help workshop in your start menu. Use it to open your projects .hpj file.
If your doing this for a MFC project, I would recommend switching to the afxcore/afxprint.rtf files listed in one of my articles here in the help section, as they are far less compicated and much easier to understand. From that point, you should be able to add your own .rtf files and topics to the help project.
If you need any more tips, e-mail me direct.
Roger Allen
Sonork 100.10016
This is a multiple choice question, choose wisely
Why did the hedgehog cross the road?
A: To show he had guts?
B: To see his flat mate?
|
|
|
|
|
Thanks for the help... I go to understand a bit more the "Help Workshop" first... but it seems simple...
Thanks
Hello World!!!
from Raphaël
|
|
|
|
|
hello @all,
i try to explain what i want / must do:
i have something like this:
<br />
int i=0;<br />
while(i<5)<br />
{<br />
i++;<br />
}<br />
the only problem is the while loop. without these, the program part runs perfectly. however i need a while loop or something like that.
i think, the problem lie in the fact that the program sends the data to matlab and then directly in the code continues to go. possibly different processes run off parallel.
i think i must have something that waits so long, till matlab is ready with the diagram (i tried Sleep(1000) but it do not work).
maybe somebody know, if matlab has got a 'instruction' or if i can make something like a 'queue'.
thank you very much
sunny
|
|
|
|
|
hi,
have you tried using for loop too. i guess you would have.I don't think two processes can be running in parellel bcz you are calling your diagram from MATLAB then when it's dissolved then only the program execution will continue. that means there is something else wrong.
I will suggest debugging the program step by step by putting a breakpoint just before the loop and then f10 or f11. i guess u know all that. how to debug. I guess you will reach a solution then.
cheers..
Himanshu
|
|
|
|
|
thanks for reply.
i tried a for loop, too. i tried a thread and i tried to debug.....but i still don´t know, what´s wrong.
sunny
|
|
|
|
|
hi,
i guess you are having problems with the debugging side. why don't you try to step into the process to see what it does and well how does it perform..is it going the expected way or not..if anywhere you see unexpected behavior thats the place u were looking for. put all the variables in watch and look for them too. what else..if not then try executing a exe of matlab exmple i guess that should work fine..and produce expected results.because maybe the interfacing u are doing is wrong anywhere..just check it thats all i can say without looking at ur code..
cheers..
Himanshu
|
|
|
|
|
thanks for reply.
the problem when i debug oder run my program is the transition between the: 'data send to matlab' and the 'new start of the function'.
the program falls.
sunny
|
|
|
|
|
When running a console application how do you adjust the properties,such as text color or window position, of the console window? I have tried right clicking the window and using the properties submenus but nothing happens.
|
|
|
|
|
if win9x i don't know, but NT you can do:
color xy
where:
according to cmd.exe in w2k
Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.
The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.
Example: "COLOR fc" produces light red on bright white
To do this from your c++ app, call system("color fc");
For the window size, try mode con:lines=x and mode con:cols=y
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I thought of trying my hand at implementing Unicode,
but I noticed that file classes(CFile, fstream) don't accept unicode strings for filenames.
How do I get this problem solved?
|
|
|
|
|
In most cases we have functions that support UNICODE. For example, CreateFile for file operations, CStdioFile class for text files. If function/class we need doesn't support UNICODE, we convert it's parameters by the following way (suppose that SomeFunction(char*) hasn't UNICODE version):
#include "atlbase.h"
// ...
USES_CONVERSION; // ATL string conversion macro
TCHAR s[100];
// fill s ...
#ifdef _UNICODE
SomeFunction(W2A(s)); // convert WCHAR* to char*
#else
SomeFunction(s); // direct call - TCHAR is char without UNICODE
#endif
|
|
|
|
|
Thanks! W2A saved the day
|
|
|
|
|
Hi!
How do i make a screensaver like the 3D-pipes in Windows with GDI+?
Thanks!
|
|
|
|
|
i guess you need to see articles in OpenGL and graphics part of the VC. There you can get some help for drawing. after which you just have to write some routines to handle.
cheers.
Himanshu
|
|
|
|
|
Thanks for your help, but i didn´t want to know how to write it using opengl.
I want to write it using GDI+ and i couldn´t find any info so far.
Greetings from Austria!
|
|
|
|
|
hi,
I have source code of a MFC application .it run well,but not support Unicode,i want it to support.
i add "UNICODE,_UNICODE" to Project/Settings/C++/Preprocessor,and add "wWinMainCRTStartup" to"Project/Setting/link/Category output/Entry "
it successful compile and link,but can't run:the "plaese specify the executable file" dialog-box shown(like compile a dll).how i can do it well?
|
|
|
|
|
Hi all code project members...
i new in VC++ programming...i have a problem to convert a string of hex value such as "E302" to the hex number such as oxE302...
i used the wcstol(...) but i seen not work....
Thankz in advance
Rgds
:_Rocket_:
|
|
|
|
|
DId I understand you correctly, you want to convert hex E302 to a long-integer value? (coz that's what wcstol does)
wcstol input syntax is [whitespace] [{+ | ?}] [0 [{ x | X }]] [digits]
You need to give the "E302" string to the function as "0xE302".
------------------------------------------
Experience is the name every one gives to their istakes. -Oscar Wilde
Experience is one thing you can't get for nothing. - Oscar Wilde
|
|
|
|
|
Hello!
I have 2 problems.
1) I have a context menu that are created within a program. The problem is that I can't access it through the contextmenu button on a keyboard. Is it possible to do that with a dynamic menu that is created in MainFrm?
2) How do I find the local administrator acounts from a program? We have an option in wich you can add UID and PW to the program to restrict its use. I would like it to always be accesible from the administrator account on the löocal computor. In other words I would like the program to automatically add the Admin acount.
/Martin
|
|
|
|
|
1) react on the WM_CONTEXTMENU message, or use the WM_RBUTTONUP message.
2) get the token and ::CheckTokenMembership(). Or use the lately documented IsUserAdmin() [or so], look up on MSDN.
I don't think this is a serious possesion, and the evil most likely comes from your hand. Colin J Davies, The Lounge
|
|
|
|
|
The WM_CONTEXTMENU and WM_RBUTTONUP messages only respond to the mouse and I need it to respond to the context menu button on your keayboard. Anyways I found WM_KEYDOWN adn WM_CHAR to do that for me.
CheckTokenMembership() only lets me check if the current user is an administrator. IsUserAdmin is a method on MSDN that does just that. I need to get the Administrator acount. Maby that is not possible...
/Martin
|
|
|
|
|
Hi,
When I clicked on CDateTimeCtrl drop down arrow it shows
me Month calendar, when I do select date or cancels on
calendar control, focus gets dissappear. Now if I press
tab the focus goes to next subsequent control and when
come back to the same CDateTimeCtrl control th'r tab, it
doesn't get selected.
Anybody of you even encounter this, or do anybody of know how to resolve this?
I tried to the code like
void CMyFormView::OnCloseupDate(NMHDR* pNMHDR, LRESULT* pResult)
{
TRACE(_T("StartDate DateTimePicker\n"));
CDateTimeCtrl *dt = (CDateTimeCtrl *)GetDlgItem(IDC_START_DATE);
if(dt->m_hWnd != NULL)
{
::PostMessage(dt->m_hWnd, WM_KEYDOWN, VK_RIGHT, 0);
}
/*if(pNMHDR->hwndFrom != NULL)
{
::PostMessage(pNMHDR->hwndFrom, WM_KEYDOWN, VK_RIGHT, 0);
}*/
*pRes = 0;
}
But this doesn't solve my problem. This logic fails sometimes. So
anybody of you can explain how to resolve this problem?
I had submitted the bug to Microsoft.
But I want the workaround. With the following logic
(sending message in message queue by PostMessage() shown
in below posted message) I'm able to select the date
inside the CDateTimeCtrl. But sometimes this logic fails.
The reason for that is my application messge queue is big,
and if the focus goes to Tree Control and there I'm
handling PreTranslateMessage() where it crashes the
application. Or sometimes the date in other CDateTimeCtrl
gets selected (even though I'm using pNMHDR->hwndFrom
handle of the CDateTimeCtrl)
So does anybody of you know any workaround for selecting
the date inside the CDateTimeCtrol after embeded Month
contol has colsed?
Thanks & Regards,
- Vijay
God is Great
|
|
|
|
|
dear all,
can i execute batch files and shortcuts using CreateProcess (...) api function?
Also if batch files can be executed, will the commands in the batch files (.exe) get access permission if the batch file is having access permission if i use CreateProcessAsUser with administrator credentials.
and is the same valid for shortcuts!
can anyone show some light!
<marquee>rishabhs
|
|
|
|
|