|
Hello,
If you want to store the string entered, than you would at least need 4 bytes more and 1 extra if you want a terminating NULL character.
Hexadecimal numbers (read bytes) are represented with 2 characters: 0x'F''F' for 255 for example.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
No, I want to store them as a numeric value not ascii.
In fact, my application is reading from the keyboard 4 bytes representing an address which will be sent to a microcontrolleer via the serial port.
|
|
|
|
|
Hi all
I'm currently trying to create a Internet Explorer toolbar in HTML format.
language: c++ / ATL - prg: Visual c++ 6
For the moment, my toolbar object is created and I try to display a HTML page in my toolbar, thanks to an activeX control:
AtlAxWinInit();
ActiveXCtrl=new CAxWindow(m_hWnd);
ActiveXCtrl->CreateControl(L"http://address.of.my.toolbar.html");
That works.
Now, I would like to call a javascript function of my HTML toolbar:
I get the IWebBrowser2 internface of my activeX control:
IWebBrowser2* tbWB;
HRESULT hr = ActiveXCtrl->QueryControl(IID_IWebBrowser2,(void**)&tbWB);
T try to get the IHTMLDocument interface of the browser:
IDispatch* pDisp;
hr = tbWB->get_Document(&pDisp);
but pDisp is null !
have you any idea to resolve this problem?
Maybe another solution than activeX control ?
I really nedd help
thank you !
|
|
|
|
|
That's unusual. I've only on suggestion. After this line:
hr = tbWB->get_Document(&pDisp);
Place a breakpoint. When it is hit, enter the following expression in your watch window:
hr, hr
This should show a text representation of the failure code (assuming failure) - perhaps this will give you a clue.
Steve
|
|
|
|
|
Hi !
well hr return E_OK
but pDisp is null ! any idea ??
|
|
|
|
|
Hi together,
I'm developing an MDI-Application which uses a status bar and a dialog bar. The status bar is at the bottom of the window, the dialog bar is docked to the left side of the window.
My problem is, that the dialog bar goes down to the bottom of the window, i.e. the status bar does not span the whole width of the application window. Does anybody has an idea how I can make it the other way round, so that the dialog bar stops at the status bar?
Thank you for your help,
Marcus.
|
|
|
|
|
Hi world!
My question is very simple:
How to know the windows langage installed on a PC?
I use MFC71 with Visual Studio.NET
Thanks very much for all advice
Hello World!!!
from Raphaël
|
|
|
|
|
there are no real languages installed on a PC.
you install an IDE, which allow you to program with one or one language. then, when you compile the code, it is turned into native language (for the microprocessor) or into an intermediate language like MSIL (for .NET framework) or Byte-Code (for Java Virtual Machine).
all depends on the development environement you're working on, and how it is installed.
for example with Visual Studio .NET 2003, it provides the MFC 7.1 only if you install Visual C++...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
Maybe he was speaking about languages like french, english, ...
|
|
|
|
|
|
|
How do you get share level permissions. Not ntfs level permissions.
I tried NetShareEnum but it returns ACCESS_NONE for all shares may be because i am running the program on an NT level machine
Kelvin Chikomo
|
|
|
|
|
Hi
I have a ICopyHook extension DLL. But this DLL is coming to effect only when i restart my explorer i.e, by lkilling the explorer.exe. If i register the DLL, i will have to kill the explorer.exe to make it work. Is there any way by which i can make the DLL work wihtout restarting the explorer.
|
|
|
|
|
Does this article help?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Thanks. But i know how to implement a ICopyHook. Butmy problem is how to make it effective from the point I perform the registration.
|
|
|
|
|
ragavan wrote: Butmy problem is how to make it effective from the point I perform the registration.
Have you modified the registry?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
|
I create a mfc regular dll and run the AfxBeginThread function in it.
As soon as I run this function ,there is a error .
Why?
|
|
|
|
|
Can you post your code ? It surely comes from how you are calling it.
~RaGE();
|
|
|
|
|
void CYiCltDllApp::Start()
{
m_proxyServer.bRun = TRUE;
m_proxyServer.m_Info.hWnd = m_hWnd;
m_proxyServer.m_Info.nPort = m_nPort; // local
m_proxyServer.m_sitebase =m_sitebase;
m_proxyServer.m_IpAddress =m_IpAddress;
m_proxyServer.m_BufferRoot =m_RecvBuffer;
if(m_hWnd!=NULL)
{
AfxBeginThread(StartThread, (LPVOID)&m_proxyServer, THREAD_PRIORITY_BELOW_NORMAL);
}
}
|
|
|
|
|
After debug in StartThread function by set break point, I found that the program do not step into the StartThread function.
|
|
|
|
|
Is StartThread declared as static ?
~RaGE();
|
|
|
|
|
not static.
At first,I set it as a member of CYiCltDllApp.
Then set it as a independent function.
|
|
|
|
|
Then try and define it static. You will have to pass the this pointer as a parameter to get hold on your data.
~RaGE();
|
|
|
|
|
What is returned by AfxBeginThread ?
Does it help to set the priority to THREAD_PRIORITY_NORMAL ?
~RaGE();
|
|
|
|