|
Adding ASSERT(plistb) doesnot solve the problem. Still get the same error.
|
|
|
|
|
I'm having the same problem. Please let me know if you have found a solution. It's mostly related to trying to add data to a listbox which is not visible to current class.
Try adding the data from the CListBox's owner class and it should work. Try it from an outside class it throws an ASSERT.
Let me know please.
|
|
|
|
|
Hello,
This may sound weird but the SW_HIDE isn't working in my application.. It executes the program but doesn't hide it.. I have also tried the ShellExecute() with the SW_HIDE and it doesn't work either..
Any idea what would keep an application from being hidden?? Its a CDIalog app and all I did was add another class to the project.. CAsyncSocket
Thanks
Rob
|
|
|
|
|
The program that you are trying to run may not properly take the CmdShow input parameter into account when it starts up. THe program may ingnore this parameters and simply call ShowWindow(SW_SHOW) when it creates the main window for the application. If this is the case then you will need to find another solution.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I needed this as well the solution is
SetWindowPos
with the hide window option set
This works pretty much all the time for me!
|
|
|
|
|
Hi all,
I want to set disk quota in my VC++ project.
I got a script command:
------------------------------
diskquotasettings.pl -operation
------------------------------
but I don't know how to execute it in my code.
any one can give a hand?
Thanks
|
|
|
|
|
will that work?
I will try
Thanks
|
|
|
|
|
Execute your script file using ShellExecuteEx(), inserting the path name for your script file as one of the parameters.
See Nish's article http://www.codeproject.com/system/newbiespawn.asp
hope this helps,
Adam.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
When i run the CreateFile function i get an Access Violation error.
Unhandled exception at 0x00f186a6 in MP3.exe: 0xC0000005: Access violation reading location 0x00000110.
Here's the code:
hFile = CreateFile("C:\\result.mp3", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
I don't understand it, i've never tried that before...
Thanks
|
|
|
|
|
Anonymous wrote:
i've never tried that before...
You still have a chance then. You should use the iostream framework instead of these ugly, C style, file handling routines. I have articles here on CP that show how to use ifstream and ofstream.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
I want my program to see if a file of a certain name is trying to or is being downloaded to my computer. Is there a way to do this?
There's always one more bug.
|
|
|
|
|
There are a number of things that you can do, it just depends on how complicated you want to get, and where you think this file will be downloaded from.
If this file is downloaded through IE it would be very simple to write an IE extension.
However if you are afraid that some rogue program may try to download this file you may want to implement the catch all for network communication and implement a Layered Service Provider (LSP). This basically adds another layer on top of your network communication stack. There is not a lot of documentation to implement one of these and it is a lot of work, so good luck if you go this route.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Thanks, I'll look into that.
|
|
|
|
|
Is it possible to get the hWnd of edit controls in a IE document?
Its very frustating, I have been trying to search for more info on this without any success
|
|
|
|
|
You can't.
IHTMLTextElement is a DOM interface made to provide access to the features of an edit box as an HTML programmer.
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
|
|
|
|
|
I have a function that has the argument list:
bool AddField(LPCTSTR lpstrFieldName, enum DataType Type, int nLength = 0);
The lpstrFieldName value I will get from a CEditbox - edit1.GetWindowText(fldName)
where fldName is a CString. What do I have to do to fldName to make
it an LPCTSTR ?
Thanks,
ns
|
|
|
|
|
|
GetBuffer() member function of the CString
or cast (LPSTR)(LPCSTR)CString Member
it will work.......
WUSIWUG
|
|
|
|
|
why don't you post this under the article that the code came from? if you do, a copy of your post will go to the person who wrote the class, which means you'll have a better chance of getting a good answer.
-c
"Kate said / The flowers of intolerance and hatred / Are blooimg kind of early this year / Someone's been watering them.
-- Robyn Hitchcock, Devil's Radio
|
|
|
|
|
OOps. Thanks, didnt know that....
|
|
|
|
|
hi friends
i've a strange problem..
m_pFtp = oInternet.GetFtpConnection(m_szServerName,m_szUserName,m_szPassword,(unsigned short)m_dwPort,TRUE);
CString csCurrentDir ;
m_pFtp ->GetCurrentDirectory(csCurrentDir) ;
m_pFtp->SetCurrentDirectory("Renjith") ;
m_pFtp ->GetCurrentDirectory(csCurrentDir) ;
CFtpFileFind ofinder(m_pFtp) ;
BOOL bWorking = ofinder.FindFile("*.*",INTERNET_FLAG_RAW_DATA);
DWORD dwErr = GetLastError() ;
m_pFtp is a CFtpConnection class member pointer ..i can connect and change the directory of the particular FTP..but when i excecute the ofinder.FindFile,which retuurns 0(false),even if there are some files..the error is
12029 ie.the atemptto connect the server failed...what may the reason ..??
pls help........
WUSIWUG
|
|
|
|
|
Try adding the flag INTERNET_FLAG_EXISTING_CONNECT to the call to FindFile .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Nopes..i found the problem..!!!
i try to connect in passive mode.....
it doesnot work.....instead of that i connect in ACTIVE mode,ie setthe flag FALSE in GetFtpConnection()...
now it working....
WUSIWUG
|
|
|
|
|
Dear all,
I was wondering if I can perform DDV and DDX for dialog bars. If yes, could someone please help me out...
Many Thanks
Chun Te
|
|
|
|
|