|
ashish dogra wrote: i use this code but it does not show mw the split window plz help me how can i see split window
The split window is there, just that the default size makes it somehow hidden. Check the scrollbars in your window. Hover your mouse over the left edge (horizontal scrollbar) or top edge (vertical scrollbar) of the scrollbar and you should see your cursor changes. Now drag your splitted window out.
|
|
|
|
|
Hi,
I use a statically linked MFC exe load a statically linked MFC DLL, and careate a CDHtmlDialog in that DLL,
I already add below code to solved original when create CDHtmlDialog will crash problem successfully,
AFX_MANAGE_STATE(AfxGetStaticModuleState());
::OleInitialize(NULL);
AfxEnableControlContainer();
but now when I use it's member function, ex:GetDHtmlDocument
it'll crash,
I already add AFX_MANAGE_STATE(AfxGetStaticModuleState()); to the DLL's each function still have same problem
what else should I add?
Thanks!!
|
|
|
|
|
GetDHtmlDocument retrieves IHTMLDocument2 from html document now whats your problem
whitesky
|
|
|
|
|
Hi,
I have created a tab control. i have placed some controls on first tab page(TAB1). And some another controls on second tab page(TAB2). I want to send the data from tabpage1 to tabpage2.
How can do it. plz suggest any solution?
with regards,
Koti
|
|
|
|
|
Not sure what data you would want to send, but you can use pipes to exchange data. Otherwise if its globally stored data in variables you can update the variables then you can have your own user defined windows messages and send messages to and from each tab window as shown below.
#define UWM_TABPAGE1 WM_APP+1
...
SendMessage(tab1_hwnd, UWM_TABPAGE1, NULL, NULL);
|
|
|
|
|
HI,
I am getting Socket Notification Sink error, How can I eliminate this.
2ndly , when I use Spy++ to view Process I saw one process under my application node with text "Socnet Notifiaction Sink " why it is there
Thanks
Regards.
|
|
|
|
|
hi all
plz help me
i want to know that some time i make an application (SDI)
in which i use CView Class now i want to use csplitterwnd or other class then how i use those
as i want to make a splitter window
plz show me some example
Ashish Dogra
MCA
Noida
|
|
|
|
|
From MSDN:
<br />
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT , <br />
CCreateContext* pContext)<br />
{<br />
return m_wndSplitter.Create(this,<br />
2, 2,
CSize(10, 10),
pContext);<br />
}
|
|
|
|
|
sir i have tried this what as it is sdi application when irun this it does not split that frame window
Ashish Dogra
MCA
Noida
|
|
|
|
|
try this:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
BOOL res = m_splilter.CreateStatic(this,2,1);
m_splilter.CreateView(0,0,RUNTIME_CLASS(CsplView),CSize(0, 200), pContext);
m_splilter.CreateView(1,0,RUNTIME_CLASS(COtherView),CSize(200, 200), pContext);
return TRUE;
}
Where CsplView is a default view class generated by Wizard
and COtherView is class derived from Cview.
Hope these help.
|
|
|
|
|
Hi,
I'm trying to send an email using simple SMTP commands (currently via telnet, but eventually through a tool written in C++). I am able to authenticate successfully; however, at the end of the DATA part of my email, i get an 'administrative prohibition' response from the server:
C : EHLO
S : 250-genamics.blastula.net Hello [aaa.bb.ccc.dd]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
C : AUTH LOGIN
S : 334 VXNlcm5hbWU6
C : [username@domain.blah - base64 encoded]
S : 334 UGFzc3dvcmQ6
C : [password - base64 encoded]
S : 235 Authentication succeeded
C : MAIL FROM:username@domain.blah
S : 250 OK
C : RCPT TO:myfriend@other.com
S : 250 Accepted
C : DATA
S : 354 Enter message, ending with "." on a line by itself
C : Body of email
C : More body
C : .
S : 550 Administrative prohibition
Any ideas as to why this is happening? Am I missing some steps? I've tried unsuccessfully to find an explanation from the oracle of truth (internet )
Thanks in advance for any suggestions.
Kanika
-- modified at 1:36 Monday 3rd July, 2006
|
|
|
|
|
|
Thanks for your response.
Sorry, I should have mentioned a couple of things:
1. Emailing works fine if I use Messaging ('Outlook' equivalent - I am on the PocketPC platform), with the same settings/user.
2. I have logged in and then out of the POP server before attempting to send an email as above, and that doesn't help either.
Cheers,
Kanika
|
|
|
|
|
For those who have come across the same problem:
The reason for my troubles was that the data that I was sending couldn't be just anything, it had to start with 'header' stuff:
DATA
From: kanika@solutions4smiles.co.nz\r\n
To: kanika.singh@trimble.co.nz\r\n
Date: Tue, 11 Jul 2006 11:18:55 +1200\r\n
Subject: Just a trial\r\n
\r\n
Testing smtp emailing\r\n
More blah-blah\r\n
\r\n
\r\n.\r\n
|
|
|
|
|
hi,
I have one clarification, I just want to know how to call stored
procedures in CDAO database.
After the submit button I need to call one stored procedure by name
STORE_FUNCTION with input parameters as
name,no,id,mark1,mark2
By using ADO I think we can use like this below. I just want to know how
to use in DAO.
With AdoComm
.CommandText = "{call PROEX.KPP_LFE.PPP_INSTPP_EMBARQUE_AUX(?)}"
.CommandType = adCmdStoredProc
Set AdoParamRet = .CreateParameter("Retorno", adBSTR, adParamInputOutput,
, vfRsEmb)
Call .Parameters.Append(AdoParamRet)
.Properties("PLSQLRSet") = True
Set vfRsEmbRet = .Execute
reply early
|
|
|
|
|
Hey guys,
I'm trying to use OpenThread however I get errors that its an undeclared identifier. I have included windows.h . I know OpenThread is defined in winbase.h however when looking within the header file I can see that the only close resembelence to this is OpenThreadToken which is not what I need. I am also using VC++ 6.0 btw.
Does that mean I would have to update my header files? If thats the case would anyone know where the most recent version
If I dont have to update my files, would anyone know a way to implement a function similar to OpenThread ?
Thanks,
Robbie
-- modified at 0:50 Monday 3rd July, 2006
|
|
|
|
|
Whats application type?
whitesky
|
|
|
|
|
Oh its a DLL Injector. It injects a DLL into an Open process. Here is a piece of the code for the DLL Injector. If there are some functions that appear unfamiliar like GetProcessThreads its because they are ones that creator defined.
bool DLLInject(DWORD pid, const char *path)
{
DWORD tid[20];
int inbytes = 20;
GetProcessThreads(pid, &tid[0], &inbytes);
if(pid == GetCurrentProcessId())
{
NumOut("Process will suspend itself and lock");
return 0;
}
DWORD tiduse=0;
for(int i=0; i<inbytes; i++)
{
HANDLE thread = OpenThread(THREAD_ALL_ACCESS, FALSE, tid[i]);
if(!thread)
{
NumOut("ops");
CloseHandle(thread);
}
else
{
SuspendThread(thread);
CONTEXT ctx;
ctx.ContextFlags = CONTEXT_FULL;
GetThreadContext(thread, &ctx);
ResumeThread(thread);
CloseHandle(thread);
if(ctx.Eip > 0x400000)
{
tiduse = tid[i];
break;
}
}
}
if(!tiduse)
{
NumOut("No usable tid found");
return 0;
}
HANDLE proc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
if(!proc)
proc = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE, FALSE, pid);
HANDLE thread = OpenThread(THREAD_ALL_ACCESS, FALSE, tiduse);
bool ret = WriteMemPatch(proc, thread, path);
CloseHandle(proc);
CloseHandle(thread);
return ret;
}
|
|
|
|
|
Im not sure its good for you but maybe it is some helpful to you i dont have vc6
<br />
typedef HANDLE (WINAPI *OPENTHREAD)(DWORD ,BOOL,DWORD);<br />
<br />
OPENTHREAD m_OpenThread ;<br />
HMODULE kernel32;<br />
<br />
kernel32=LoadLibrary(_T("kernel32.dll"));<br />
m_OpenThread =(OPENTHREAD)GetProcAddress(kernel32, "OpenThread"); <br />
HANDLE h=m_OpenThread(THREAD_ALL_ACCESS,false,GetCurrentThreadId());<br />
whitesky
|
|
|
|
|
|
Nice, that fixed it. Thanks for input guys!
|
|
|
|
|
I want to transfer a block of data from one memory location to another using DMA. Is it possible to directly make a DMA call from my VC++ application code or do I need to go to the driver level for this.
Sonia Horra
|
|
|
|
|
Im not sure that its your answer or no but i think maybe it is some helpful to you Here[^]
whitesky
|
|
|
|
|
Thank You. My further query is that in my application code, the two memory buffers i.e the source buffer and destination buffer have some virtual addresses. To do DMA, I need the physical address of these buffers. How do I map virtual address to the physical address to initiate DMA?
Sonia Horra
|
|
|
|
|
My c++ application, need to auto start, when pc start up. Is there any example / code?
|
|
|
|