|
Renjith,
Thank you very much for your feedback.
In a dialog-based application how can you indicate that you want a second dialog to be child of the first dialog?
Cheers;)
Zed's dead, baby. Zed's dead.
|
|
|
|
|
hi,
i'm currently make a simple add-in which work on the project files but i was surprised to see that there is no way to get those file names through the IGenericProject interface It seems to me that it's the _logical_ place where you should find this kind of info.
Here is some text from msdn lib for vc 6.0 : "The Project object represents a group of related files that can include one or more configurations.". unfortunately, as i said before, i didn't the methods to get those 'related files' names (something like GetFilesCount and GetFileById).
if you have any hint i would appreciate. pfffff, i will never get the way microsoft design their software
|
|
|
|
|
so, no one can help on this topic ??
|
|
|
|
|
Do you want to see something really stupid...
Something like... Hey ! There is a reply for your post but you have to see all this banners or you won't get NOTHING !!! ( mmm... what about the volunteer that makes the answer did the pay him ? ):
(...)
This thread is located at:
http:
There may be other replies also, but you will not receive any more notifications until you visit the board again.
Yours,
CodeGuru Forums team
Are this people idiots ???, I think at least they are not programmers, marketing monkeys or something like that... they suck !
|
|
|
|
|
|
I currently have a docked dialog bar with a tree control in it. The parent App has various functions which I want to use to populate the tree when I click on a tree item. I'm having trouble figuring out how to access the parent functions and variables from the docked dialog window.
Can somebody help?
BW
{insert witty/thought-provoking saying here}
|
|
|
|
|
You can SendMessage to the parent and then have it do what you want it to. That would not be the same as the child window accessing the parent's functionailty.
Alternatively, you could pass the childwindow a pointer to the parent when you create the child.
Though you must be careful in how you design this. If not done well you can end up with spaghetti code.
|
|
|
|
|
When I run a testing script. I got the error:
Microsoft VBScript compilation error [Line ] Expected end of statement
Dim doc As Integer
"Dim doc As Integer" is the script I passed it. The script is quite simple, and why does it have compilation error ?
I called MyScriptSite's ParseScript to run the script. Below is the code. I chased before calling ParseScript, the state is Initialized.
<br />
STDMETHODIMP CMyScriptSite::ParseScript(BSTR bstrText)<br />
{<br />
<pre><br />
EXCEPINFO exception;<br />
ZeroMemory(&exception, sizeof(exception));<br />
<br />
SCRIPTSTATE pst;<br />
m_pScript->GetScriptState(&pst);<br />
<br />
m_pScriptParse->ParseScriptText(bstrText, 0, 0, 0, 0, 0,<br />
SCRIPTTEXT_ISPERSISTENT|SCRIPTTEXT_ISVISIBLE, 0, &exception);<br />
<br />
return S_OK;<br />
</pre><br />
}<br />
|
|
|
|
|
That's because VBScript only has one type.... The variant.
Try this:
dim doc
...
...
That should take care of your problem.
|
|
|
|
|
Thanks, now it can successfully call ParseScriptText, but after it, when i called SetScriptState(SCRIPTSTATE_CONNECTED), it raised an ASSERT failed error. Do you know why ?
|
|
|
|
|
I need to call a console application with command line arguments, and send the output to a file. I could also make use of this by sending the output to my "parent" stdin, but I thought that would be more difficult.
I use CreateProcess using NULL for the appName, and put everything into the cmdLine param. Something like
"C:\junk\g7a.exe" t "C:\junk\file1.tgz" * > testfile.txt
The programs seems to run, but never creates the testfile.txt. If I copy, and paste the same string into the Start->Run window, it does not create the file either. If I copy, and paste into a DOS prompt window, it works fine.
Do I need to do something with the handles, or am I missing something?
Thanks,
David
|
|
|
|
|
This article[^] may help.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thank you. It's exactly what I needed.
|
|
|
|
|
How do I set the height of the dropdown list in a CComboBox so that I can see more than one entry from the CComboBox ?
I also committed the crime of posting a programming question in the Lounge.
|
|
|
|
|
In the resource designer click on the drop-down arrow of the combobox; then drag the bottom down as if you want to enlarge it: that size is the actual extent of the portion of the list box associated to the combobox.
Alberto
Alberto Giannetto
|
|
|
|
|
Thanks a million
I also committed the crime of posting a programming question in the Lounge.
|
|
|
|
|
Hi all,
is there a way to display multiline tooltip on an icon in the system tray box under Win9x? The same multiline tooltip on W2K appears correctly on two lines; on W9x it has the obnoxious black 'squarelets' meaning no translation of carriage returns...
The only way I could find to manage system tray icons is via the Shell_NotifyIcon, which doesn't allow full control over the notification messages, except normal mouse and keyboard activity...
Thanks,
Alberto Giannetto
|
|
|
|
|
Perhaps this article[^] will help?
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Interesting code surely, but I'm not sure it can help: how do I get full control over the ToolTip when, through Shell_NotifyIcon, all I have to do is just fill a NOTIFYICONDATA structure?
Albi
|
|
|
|
|
I am trying to put a blob into an access database into a field of type OLE OBJECT (hope its the right one, tried text as well just in case). I get the crash at AppendChunk:
void BlobToVariant(VARIANT &varArray)
{
BYTE *pByte;
FILE* pFile ;
long size;
pFile = fopen("C:\\Windows\\rhododendron.bmp", "rb");
if(pFile == 0)
{
size = 0;
return;
}
fseek(pFile, 0, SEEK_END);
int fileSize = ftell(pFile);
fseek(pFile, 0, SEEK_SET);
if (size < fileSize)
{
size = fileSize;
fclose(pFile);
return;
}
size = fileSize;
char *pImage;
fread(pImage, size, 1, pFile);
pImage[size] = 0;
fclose(pFile);
CString CImage(pImage);
SAFEARRAY FAR* psa;
SAFEARRAYBOUND rgsabound[1];
rgsabound[0].lLbound = 0;
rgsabound[0].cElements = CImage.GetLength() * sizeof(TCHAR) + sizeof(TCHAR);
psa = SafeArrayCreate(VT_I1, 1, rgsabound);
if(SafeArrayAccessData(psa,(void **)&pByte) == NOERROR)
memcpy((LPVOID)pByte,(LPVOID)CImage.GetBuffer(CImage.GetLength()),CImage.GetLength()+1);
SafeArrayUnaccessData(psa);
varArray.vt = VT_ARRAY | VT_UI1;
varArray.parray = psa;
}
void DbClass::AddNewRecord(char* key1, char* value1)
{
VARIANT varBLOB;
BlobToVariant(varBLOB);
m_pRecordset->AddNew();
m_pRecordset->Fields->Item[0L]->AppendChunk(varBLOB);
m_pRecordset->Update();
VariantClear(&varBLOB);
m_pRecordset->MoveLast();
Any ideas why?
Thanks,
ns
|
|
|
|
|
Does m_pRecordset->Fields->Item[0L] have a valid value? (You can test it with an ASSERT).
Caveat: I'm ADO ignorant.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
yes its a valid column in the database. Its cousin GetChunk is working happpily on it to retreive data. Now I'm trying to put data into the table. This seemed the most understandable way..
Thanks for the reply. I was wondering where you were!;P
|
|
|
|
|
I'm around...
Been working on a hack[^] for my sister-in-law who (bless her heart!) has EBay-itis, but uses a humble 28.8 modem. Now other people have started using it and have been sending me feature requests. I love it!
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
The link to the hack is invalid.
I'm sort of having fun too....ADO is doable.
|
|
|
|
|
Glad you're having fun, and it's not much ADO about nothing. Sorry, sometimes I think I'm a punny guy. Damn.
The link is fixed. You can see it here[^].
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|