|
Hi everyone!
Can anyone tell me how to insert additional bytes in a memory mapped file?
|
|
|
|
|
Look at the ZwExtendSection native API
(you will need to google for it, it's not documented by MS)
James
http://www.catch22.net
|
|
|
|
|
Is it Possible to make in one time all controls on a form in blank ?
I am using Visual C++ 6.0 MFC
I am learning my self
|
|
|
|
|
the only way to do this is to use UpdateData() when no values where stored into the controls' copy
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
there is not "automatic" way of making all controls "blank", you need to go one-by-one.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
i don't agree, using UpdateData() allow users to do such behavior, unless you used this function to transfer datas between your dialog and your associated class...
however i don't agree with the totality of this[^] article, the author talks about that special point...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
but you still need to set all values to something before using UpdateData.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
|
As toxcct alludes to, you can use DDX and then initialize each variable before calling UpdateData() or if you're not using DDX you could write a loop that would loop through all the controls on the dialog and then using the SetWindowText message, blank all controls.
Cheers,
Tom Archer - Archer Consulting Group
"Eat your brussel sprouts, Junior. There are starving Chinese children American programmers that would kill for that food!"
|
|
|
|
|
I am using SQL SERVER 2000 database,in my table, there are some fields without data .
I am using Visual C++ 6.0, when I show this record on my form, i am seeing abnormal writting on these fields that are empty(like !!!!!!)
In the date field that i have not write any thing I see 1/1/1900, why ?
What to do please ?
Urgent
I am learning my self
|
|
|
|
|
mikobi wrote:
Urgent
yeah man, first of all, if you want a quick answer that satisfy you, begin with express yourself clearly.
well, now, don't you use a default constructor of your date object that fills it with 1/1/1900 ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
No,these date fields are empty when i introduce data on the records.
when a look on the SQl server 2000 database I see this. This problem is not Visual c++ but SQl server.
|
|
|
|
|
I'm trying to use resetText () to reset values of some text boxes to their default. I'm using it as follows,
<br />
myTextbox->ResetText ();<br />
but all this seems to be doing is clearing the text instead of resetting defaults.
Any ideas???? Because I'm stuck.
|
|
|
|
|
richiemac wrote:
myTextbox->ResetText ();
I Believe there is No CEdit::ResetText() function exist!, are you using custom EditBox
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Sorry it's not a MFC application. It's a .net application so it's System::Windows::Forms::TextBox __gc *.
Does that help or should I be asking this elsewhere??
|
|
|
|
|
|
|
Hi, I'm trying to prevent a richedit control from processing the WM_KEYDOWN keyboard event whenever the user presses the tab key. The code below does not work for some reason I don't know!! any ideas are appreciated.. thanks
<br />
case WM_NOTIFY:<br />
{<br />
LPNMHDR pNmhdr = (LPNMHDR)lParam;<br />
switch(pNmhdr->code) <br />
{ <br />
case EN_MSGFILTER:<br />
{<br />
MSGFILTER* pMsgFltr = (MSGFILTER *)lParam;<br />
switch(pMsgFltr->msg)<br />
{<br />
case WM_KEYDOWN:<br />
if (pMsgFltr->wParam == VK_TAB)<br />
{<br />
return 1;<br />
}<br />
break;<br />
}<br />
}<br />
break;<br />
} <br />
}<br />
break;<br />
(a.k.a. Wal2k) www.wal2k.com
|
|
|
|
|
Use WM_CHAR instead of WM_KEYDOWN
-Luis
|
|
|
|
|
now it works perfectly, thanks a lot...
(a.k.a. Wal2k) www.wal2k.com
|
|
|
|
|
I've got a DialogBar A docked at the top of the frame window.
How can I do to dock another DialogBar B at the right side of DialogBar A.
I tried pFrame->DockControlBar(pDialogBarA, AFX_IDW_DOCKBAR_TOP|AFX_IDW_DOCKBAR_RIGHT) but the AFX_IDW_DOCKBAR_xxx only refer to the frame window
|
|
|
|
|
|
Hi,
Please, forgive me to post to this specific forum. If that is not appropriate, could you point me to some more relevant place?
I'm a complete newbie in using lexx/yacc -like tools in order to build a syntax highlighter add-on to Visual Studio .NET. The thing that is bugging me is that:
each time the lexer recognizes a token, I cannot reliably retrieve the starting position of the matched text in the input string. I'm using something like this that fails for alternate start states in the lexer :
<br />
std::string line;<br />
...<br />
int a_token;<br />
int a_pos = 0;<br />
<br />
while ((a_token = m_lexer.yylex()) != 0) {<br />
<br />
int pos = line.find(m_lexer.YYText(), a_pos);<br />
int end = pos + m_lexer.YYLeng();<br />
<br />
a_pos = end + 1;<br />
The code works almost correctly most of the time (although it doesn't seem right). But it crashes for the input grammar :
<br />
%x single_quotes_string<br />
single_quote ''<br />
%%<br />
' { BEGIN(single_quotes_string); }<br />
<br />
<single_quotes_string>{<br />
[^'\n]*|{single_quote}* <br />
' BEGIN(INITIAL); return TK_STRING; }<br />
\n { BEGIN(INITIAL); return TK_STRING; }<br />
}<br />
%%<br />
<br />
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|
Hi All,
Im creating a dll and I want to put in the code a way to create a registry key. Im only trying to do something very simple - (1) Create a registry key & (2) Have a vaule pointing to the root of c:\
Ive just tried the basic regcreatekeyex method and although it compiles it does not actually create anything and I think ive missed something very fundamental here (please forgive the noobie status). Here is the code:
DWORD dwRes, dwDisposition;
SECURITY_ATTRIBUTES sa;
LONG lRes;
HKEY hkSub = NULL;
lRes = RegCreateKeyEx(HKEY_CURRENT_USER, "mykey", 0, "", 0,
KEY_READ | KEY_WRITE, &sa, &hkSub, &dwDisposition);
It compiles fine but when i run regedit and try to find "mykey" it comes up with nothing. Any help would be greatly appreciated. Thanks
Nic
|
|
|
|