|
Did u check if the LoadMenu is returning TRUE? TrackPopupMenu?
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
This is so bizarre. I made a new menu resource and (identical!) this one worked with no problem so I got rid of the other.
Thanks,
ns
|
|
|
|
|
Very cool!
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
One last try to see if anyone knows how to deal with this. I'm trying to use this function using VC.Net with MFC, but theres a big problem, parameter 2 is never recognised by the compiler Its defined as an enum in afxinet.h but it won't accept any of these values
Has anyone any idea of how to get this working because its driving me loopy I'm needing it so I can use commands other than the basic ones wininet offers such as LIST and PASV.
Thanks
|
|
|
|
|
How does one add a new field or delete an existing one from a database on the fly? I am using ADO with _recordsetPtr etc.
Thanks,
ns
|
|
|
|
|
U just have to send the correct SQL to the DataBase :
To delete LastName Field from Persons:
DELETE FROM Person WHERE LastName = 'Rasmussen'
To insert into table Persons a lastname and an adress:
INSERT INTO Persons (LastName, Address)
VALUES ('Rasmussen', 'Storgt 67')
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
What I meant is, I want to add or remove an entire column, not just the values for a particular record. So the field vanishes for all the records, or appears for all the records. Sorry I wasnt clear...
thanks,
ns
|
|
|
|
|
Then what u need is to send this SQL:
ALTER TABLE table_name
DROP COLUMN column_name
And that is that!
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
in order to add a column:
ALTER TABLE table_name
ADD column_name datatype
eg:
To add a column named "City" in the "Person" table:
ALTER TABLE Person ADD City varchar(30)
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Truly aopreciate it. Hopefully my execute statement wont choke. For example, I cant get past a crash when i do an insert into in an execute statement. Its really frustrating! I pConn->Execute or PCommand->Execute or even pRecordset.OPen(pCommand,...) All three crash. SO hopefully your sql wont crash. ANy ideas why?
If you are into SQL and db, can you point me to some Working code for addnew or insert into? Theres tons of stuff out there - nothing works. AT best addnew() works, says recordcount is increased, but no records added to the db are visisble. The rs is lockoptimistic and adkeyset. It can edit just fine, but not add..
Thanks,
ns
|
|
|
|
|
I have create application with RichEdit and AutoURLs detection. Application work fine on Windows 2000, but under Windows NT links not works... Why?
Pavel Sokolov,
CEZEO software,
LanTalk Network,
http://www.cezeo.com
http://www.lantalk.net
|
|
|
|
|
Are you using RichEdit 2.0 (riched20.dll) on the NT machine?
"Quand tu sèmes ta haine
tu récoltes la Kalachnikov Love"
-Kalachnikov Love, Alpha Blondy
|
|
|
|
|
|
Hello,
I want to add small images (*.bmp) and icons to the MS outlook 2000 mails, using VC++. Plase guide me to how to do this.
Thanks,
-Revati
|
|
|
|
|
Hi,
I would like to read IP address of my DeskTop to prepare some Internet link! But I do not have the Iphlpapi.h & I can not download the SDK Platform from Web (Can nor ceate Server object even I restart PC several times)
Any one know how we can work around without using Iphlpapi.h to search for IP address?
I appreciate any one can provide any information about this!
Thanks & regards,
ThanhChau
|
|
|
|
|
Hi,
I'm sort of a beginner at MFC, and have taken a mammoth dialog from my project and attempted to convert it to a tabbed interface using CTabCtrl. Everything works on the child dialogs except for my combo boxes, which are drop-down style straight from the ClassWizard. They worked fine on the main page. Now, the lists will not drop down at all on my XP system, and only a blank list drops down on my W2K system (not sure why). The lists are the proper size.
If the problem is that the list portion of the combo box is a child of the desktop, is there a workaround?
Thanks in advance for any help,
- Fran
http://www.surrealstructures.com
|
|
|
|
|
i have only used CPropertySheets to do tabbed interfaces, but what you probably need to do is have a function get called whenever a tab is selected.. like a notify event.. whenever a tab(dialog) gets this notify event it should call m_cbMyCombo.ResetContent() and then m_cbMyCombo.InsertString() for each of your items..
what probably happens is that the OnInitDialog() is only called once (or maybe not at all) for each of the tabs(dialogs).. so you should call a function to populate them everytime that tab is selected..
hope im somewhere on target..
-dz
|
|
|
|
|
Hi dz,
Thanks! I was dubious (sorry), but that did the trick. What a relief. I already had OnSelChangeTab() handling tab selection, so all I had to do was insert the ResetContent() and InsertString() calls as you suggested.
- Fran
http://www.surrealstructures.com
|
|
|
|
|
i have a combobox which has the sorting function turned on.. but i am dynamically populating it all the time and it doesnt ever sort them.. is there something i can do to make it sort the text strings in the combobox after I've added all of my items? ive tried myComboBox.Redraw() and myComboBox.Invalidate()
thanks for any suggestions!
-dz
|
|
|
|
|
Have a look at CComboBox::CompareItem
Gary Kirkham
A working Program is one that has only unobserved bugs
|
|
|
|
|
i dont follow.. i have tried looking at this function on msdn, but this function appears to just compare 2 items, i would be have to sort before i populated the combobox each time..
i was kinda just hoping to call the sorting which is already built in.. it has sort turned on.. but it isnt sorting when i add items.
-dz
|
|
|
|
|
How are you adding items to the combobox? If you use InsertString() , they won't be sorted, as you're specifying a position. If you're using AddString() (and CBS_SORT is set) they should automatically be sorted.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
thanks a bunch, ill give it a try!
-dz
|
|
|
|
|
my question regards the MS browser control , but this seemed the most appropriate forum.
Does anyone know whether it's possible to affect the security domains of windows and frames presented within the browser control selectively - eg. for different window instances to possess alternate security levels. I'd like to develop a BC based app. that possesses security characteristics similar to those of an HTA. This is primarily to allow script originating from one domain to affect pages from a foreign domain without providing the foreign domain a 'Trusted' status relative to the top level window. Essentially I'm trying to get the BC instance to behave like an HTA.
Any advice a/o leads on resource will be appreciated - I'm new to windows development.
Thanks
David
|
|
|
|
|
I've been asked to write a program that will start another program up and then log all calls it makes to WriteProcessMemory() and any changes it makes to its variables. Is this even possible and if so where would be a good place to start looking?
Thanks
|
|
|
|