|
I happen to have all three of these books (What can I say? I'm a bookaholic).
Programming Windows with C# by Petzold is quite good, but most of it is not specific to C# (though all the examples are in C#). He alternates chapters between Windows Forms controls and GDI+. If that's what you're after, you won't be disappointed.
I was given the other two by my dad, who also uses C#.
Programming C# by Liberty (I have the 2nd edition) was very helpful to me. He starts right from the beginning and manages to cover a good number of interesting topics. He assumes the reader has some knowledge of programming and makes direct comparisons between C# and C++.
Windows Forms Programming with C# by Brown was not my cup of tea. (Keep in mind that I don't drink tea, but still...) There seemed to be quite a bit of hand holding, but that's not to say it's a bad book or doesn't contain useful information; It's just not a style of writing I care for.
Charlie
if(!curlies){ return; }
|
|
|
|
|
hi
i making a program to make dial-up connection with c# and connecting to the
net ,i dial with numbers stored in database , i use win32 API
like(InternetDial() ,InternetHangUp()), but i have two problems
1)InternetDial is dialing with default network connection on pc.
i need to make it taking numbers from database.?????
2) i want to create a new dial-up connection on pc, idont now what
function i can use
thank u for advanced help
send me on hz_csharp@hotmail.com
|
|
|
|
|
QUIT POSTING THIS QUESTION!!!
You have asked it about a dozen times now. I'm the only one that's replied, implying that no one really knows the answer SO YOU HAVE TO FIND IT YOURSELF! I've given you pointers and now you have to complete the research. POSTING THE QUESTION OVER AND OVER WILL NOT GET YOU AN ANSWER!!!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Is there any particular reason?
I was under the belief that BOOL was cast to bool.
Wouldn't they take up different spaces in memory?
Cheers
Cata
|
|
|
|
|
BOOL is not a type, its a typedef.
Only any normal person using C would define BOOL as char, not int.
In Windows headers BOOL is defined as an int, blame MS.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
I'm guessing but suspect that a Bool is an int because an int is 32 bits and that is the size that a 32 bit machine can handle with the most efficiency.
It would take more instructions to deal with the Bool if it were a byte.
I work on an embedded project using a Motorola 68K (16bit) and a Bool is defined as an int that is also 16 bits. On 8 bit controllers a Bool, if defined at all, is a char or 8 bits. On a few controllers such as the 8051 types where memory is very limited, they have memory locations that only consist of single bits and can be read or written in a single instruction. In that case a Bool is defined as a bit.
Ken Galer
Electrical Engineer
Preferred Utilities Corp.
Danbury, CT 06810
|
|
|
|
|
I have found the EnumFORMATETC method for IDataObject, and they appear to have nothing in common. How does this:
HRESULT EnumFormatEtc(
DWORD dwDirection, //Specifies a value from the enumeration
// DATADIR
IEnumFORMATETC ** ppenumFormatetc
//Address of output variable that receives the
// IEnumFORMATETC interface pointer
);
Get turned into this:
IEnumFORMATETC OleEnumFormatEtc([in] int dwDirection);
i'm very fuzzy on this.
Cheers
Cata
|
|
|
|
|
By inspaceing the COM interfaces as per defined by the IDL interface.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Trying to find articles on it, but not having any luck.
Looking through MSDN atm, but do you have any other links?
Cheers
Cata
|
|
|
|
|
HRESULT EnumFormatEtc(
DWORD dwDirection, //Specifies a value from the enumeration
// DATADIR
IEnumFORMATETC ** ppenumFormatetc
//Address of output variable that receives the
// IEnumFORMATETC interface pointer
);
the way I see it, this should tranclate to:
<br />
int EnumFormatEtc(<br />
int dwDirection,<br />
out IEnumFORMATETC[] ppenumFormatetc<br />
)
the method is expected to return an int that deffines the state of the equasion, not a structure. How can it run? Every other method I have looked at translates:
XXX ** type
into an out array.
Could someone explain this to me?
Gratz
Cata
|
|
|
|
|
I'm sorry I dont know COM, I suggest you ask this in the COM forum.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
I'm not entirely sure on this, while I have encountered it before.
I'm just looking for clarification
in: Just put the variable in
out: public void mymethod(out int X);
in/out: use ref?
Cheers
Cata
|
|
|
|
|
|
I've been looking at the decompiled versions of various structures, and they are for the most part, very helpful.
While not in the order in which they should be, they still show me what I need to cast things as.
The problem is i've found that in Formatetc, they have added a "dummy" object that is a short (int16), and I do not know the reason for this. I'm assuming it's some kind of buffer for the other objects in the structure, but as they are all ordered in alphabetical order, I don't know where to put it, or what it's there to affect.
Any clues?
Cheers
Cata
|
|
|
|
|
How to use it in a web page?
.net windows com can run in IE directly,
How to open a word or excel document in my C# windows form,
the document maybe on the server,
and edit it,and save the changes to the document on the server?
I find winwordcontrol,but it can't save the changes,
and can't open a office file on the server(http://servername/file.doc),
who can help me?
Thank you!
|
|
|
|
|
You can open Word/Excel files that are on the server from the WebBrowser control, but you can't save them again without a workaround, mainly because you would have to use an FTP connection to upload them again.
|
|
|
|
|
don't use WebBrowser control,
if there are some other method?
open Word/Excel files that are on the server?
and save to the server?
Thank you again!
|
|
|
|
|
Write your own code to download them through HTTP or FTP (or whatever you like), open them using the Process class (using ProcessStartInfo for opening the document-related application without knowing), and when that process exits (or you can use the FileSystemWatcher to watch for file changes) upload the document using HTTP or FTP (or whatever). See classes in the System.Net namespace for documentation of helpful classes, but you'll have to code this solution yourself.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=688223&df=100&app=50&fr=465#xx688223xx
go to this link and u will find all what u need.
|
|
|
|
|
|
with this com u can visualize & automate the doc in windows forms and in web browser
by other words u can open , edite and save the document
if i didn't understand plz explain to me.
|
|
|
|
|
hazzem elrefai wrote:
if i didn't understand plz explain to me.
Better yet, why don't you read the previous thread?! His question seems to simply be a question of downloading, editing, then uploading the document. This really has nothing to do with how a Word document is displayed, whether in its associated program (Word, WordPad, etc.) or its automation server is embedded in a different frame - it's all about editing a remote document.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
it's all about editing a remote document.
and save it to a remote server.
web service?
I think it's difficult,
do you have a sample?
study...
|
|
|
|
|
I sure could use some help.
I have a web app with frames. I want to be able to notify frame2 when something takes place in frame1. Should be simple, but maybe I'm the simple one. I've got the event structure working because I can fire an event in frame 1 and receive and act upon it in frame 1. But when I fire it in frame 1 and try to handle it in frame 2, it is apparently never received. The event appears to fire fine (I get no errors and see it pass the statement OK in the debugger), but the handler (which also appears to be declared correctly, since I get no compile errors) never seems to receive it.
Can someone point me in the proper direction?
I really appreciate it!
Mike.
|
|
|
|