(Not sure if i had to post this here, couldn't find a forums here more fitting, if it's supposed to go elsewhere please remove).
I just finished readying: "Teach yourself C# in 24 Hours, by James Foxall", it really was a nice book, but i feel there are parts it discussed that didn't "fill" my knowledge as much as i'd like. Could someone propose a book, a set of books, or a complete training course that it is best for, learning CSharp, understaning OOP as a concept, and taking you to the next level, an intermediate status to pro (well pro without a proffesional experience).
The next thing is to read all the .NET frameworks docs in MSDN from start to finish. That should keep you busy for a year or 2, but you will be a "pro" To reach the next level, you will have to study the EMCA-334/5 C#/.NET CLR specs to answer all your questions you have left After that stage, you can rename yourself to Heath Stewart or something :p
Thanks ofr pointing these things out for me, but the problem is, i don't trust myself yet to start searching on my own, performing quantum leaps. Even with having finished that book and all the examples/tests in it, i cannot write a simple program on my own, without having 100 backdraws and stuff. Meaning i cannot make code decisions yet, i just type like a blind and hope that this will work. That's why i asked for a book/s that will help me answer questions ( that maybe now i don't know i have, but will surely stumble upon later), and will serve as a quide to get me on knowledge-train, then i will surely have to dig on MSDN library (and CSharp Dev center). And i am also lacking OOP knowledge (only thing i know is what i've read in this book) 'cause C# is the first "real" language i started studying, no c++ background etc.
So if there's a book/s that would fit my needs as i mentioned above, please help me make the right choice
p.s. What is ECMA-334/5 C#/.NET CLR (common language runtime)?
If it's C# you are interested in, then I'd recommend Inside C# by Tom Archer. I certainly think it is the definitive tome on C# the language.
IMO, The only true way to learn is by doing. Books like Teach yourself x in 24 hours are okay for beginners. The best way to learn is to write your own code and read code done by others. There are plenty of good C# examples here at CP to download and read. The only way to learn is to make the mistakes and ask questions when you get stuck.
Sorry for this question but I'm looking for a quick answer.
How does .NET load assemblies? - or better how does .NET find the assemblies to load?
For example: if I have myexe.exe which uses mydll.dll myseconddll.dll, etc. does the runtime scan the folder containing myexe.exe for all .dlls and loads them? What if I have 1000 .dlls in a single folder? Will the runtime load them all or just will scan them all?
My exact question is: I want to organize my program like that
As you might guess what is in ./system/ will always be available and used by main.exe but what is in ./plugins/ could be different.
What methods do we have available to load .dlls? I'm currently reading Sam Haidar's article on late binding. Are there any other methods?
Could you please point me to information, where I can find an answer about this question.
Well, I did plugin loading by first just listing all the DLL files in the plugins directory and then calling Assembly.Load() (I think that's what it was called) for each of them and specifying the file as the parameter.
The OLE DB .NET Provider does not support named parameters for passing parameters to a SQL Statement or a stored procedure called by an OleDbCommand when CommandType is set to Text. In this case, the question mark (?) placeholder must be used. For example:
SELECT * FROM Customers WHERE CustomerID = ?
As a result, the order in which OleDbParameter objects are added to the OleDbParameterCollection must directly correspond to the position of the question mark placeholder for the parameter.
My team has the following task to complete.A solution that consists of 3 projects :
1-Win app that connected to a local DB server(SQL server) .
2-Web app that connected to a remotre server(SQL server).
3-Mobile app for that connected to tha same remote server of the web app.
1-The win app deals with a DB(Local DB SQL server) for updating ,retriving,inserting and deleting.
2-The web & the mobile app deal with a DB(Remote DB SQL server) for tha same purpose.(updating ,retriving,inserting and deleting)
1-The Win app will connect one time per day to update the Remote SQL server with the new data from the Local SQL server.
2-The Web and mobile app connected to the Remote SQL server will update ,retrieve ,delete and insert records in it.
1-If I can use Asp.net web services ,How can I use it?
2-How can i make daily transaction to update the Remote SQL server with the new data at the Local SQL server??
3-How can i make daily transaction to update the Local SQL server with the new data at Remote SQL server ??
4-How can i manage the DB Transactions ?
5-how can i use the same methods(code) for dealing with the DB ,for the win app , the web app and the mobile app?
6-What is the best way to complete this solution?
Thanks for reading to this line.
I hope you can help me.
I know how to do this via Win32 API's, but curious about how to do it in
.net. Is there a way in the framework to change the system's locale? System, not a thread's locale (found this easily in msdn). Doing this for a tool to help automate testing.
As far as I can tell, you can only use this class to change on a per thread basis, I need to change window's locale programatically (like when using the regional settings control panel applet, or the win32 API's)
Set Thread.CurrentUICulture to the desired CultureInfo. If you have controls that have already been initialized, you'll have to re-initialize them (note, not necessarily reinstantiate them) with a ResourceManager to have the new culture's information read from the satellite assemblies. If Windows's regional settings specifies a different culture for the UI, this all happens by default using the selected language, if available. Otherwise, the ResourceManager resorts to the neutral resources language (the localized resources in the assembly that contains your code). You should use the assembly attribute, NeutralResourcesLanguageAttribute, to keep the ResourceManager from making unnecessary look-ups for satellite assemblies for the culture that is already included in your primary assembly.
Thanks heath but... I already know all this. Again, I need this application to change the system's locale. I know this will not change the locale of running processes, but will determine the locale of new ones. This is what I need - this little applet is for performing a repetitive testing operation we need to do in several locales. About which locale this applet runs in... I don't care! It is not even localized. The app I am using to test of course is.
I am currently calling a C++ DLL which does the correct calls kludgy! (SystemParametersInfo with SPI_SETDEFAULTINPUTLANG)... kinda works but I want to know if there is something in the FCL to do this.
So, basically, same as so often, use API's because FCL does not offer everything you need...
I know the concept goes way beyond this, but sometimes the FCL just seems like another wrapper around the API's which, to do some things, you need to call directly. Good old API's, glad I learnt them. Same story as VB programmers wanting to do things, having to call API's and getting all confused because they have no idea what an API, handle, etc, is....
Sure the framework/clr offers a ton of interesting things and makes things much easier, but why only offer a subset of the functionability of the API, not all? (like in this case). To make it portable to other platforms???!?
Whatever, thanks for taking time to reply.
Last Visit: 31-Dec-99 18:00 Last Update: 30-Sep-23 14:21