|
Hi guys,
I wonder if you can help?
I'm keen to get started as a .NET programmer. I'm half way through a book called 'Head First C#' which deals with Windows Forms programming.
However, I think I need to go on a different tack in order to pass the first MS exam for .NET, 70-536.
I understand that the new MS study guide book for this exam is quite good but that it's for people who already have quite a lot of experience with .NET. Also, the version of Visual Studio it comes with only last 90 days, and I think I might need more time than this.
I wondered if anyone:..
a) Knew of any good introductions to .NET I could go through before taking up the MS materials?
b) If anyone has read 'Head First C#' and knows if this already acts as an adequate introduction?
c) Knew whether a student edition of Visual Studio could be picked up even if you are not a member of college but are just self studying? (I know you can get the Express edition for free but I've heard that you need a fuller version for the 70-536 exam).
In order to take any doubt out of getting the right materials, I'm considering taking up a formal course for the 70-536 exam. However, this costs £1200 ($1700), where as I can get the MS book for £32 ($46).
I know this is a bit of a long post so thanks very much if you got this far, any help is very much appreciated.
Kind regards,
Dan : )
|
|
|
|
|
I have a prob with calling stored proc from oracle that has an out parameter of %rowtype . I have searched on net but nothing has helped yet. Has somebody already come up with the solution. I can't call the proc from my code.
|
|
|
|
|
I noticed that you call the out-parameter "%rowtype", Oracle might expect ":rowtype". That's a long-shot though. Are you using the frameworks' OracleClient libraries to connect?
I are troll
|
|
|
|
|
hi,
I had created an MSCOMM windows application in .net framework 1.1 which writes the data into text file with timer.
On the computer which has the .net installed it works well.But on the client system on which I had installed the framework 1.1 it gives the Error: unable to load resources.Please check your setup.
PLease give the soultion ASAP.
Thanks,
kanwal.
|
|
|
|
|
i have integrated SMS with my dotnet project,after sending a SMS i am getting XML document as Acknowledgement on my browser,so i want to capture that XML content and display the message in the user understandable form on the browser..plz help me out
|
|
|
|
|
Load XML File in DataTable, bind Table to grid and display result on Screen
|
|
|
|
|
Hi All!
I would like your thoughts and suggestions on the following scenario.
I need a distributed appication evironment to save the IIS server from working itsself to death!
The basics is this:
I want a webpage/ application/ service to start a application sitting on a diffrent machine on the intranet, then communicate with this application for the duration of the process.
Applications on the machines are added on the fly, so the calling application or web page cannot be re-compiled.
It seems Remoting won't work for me as the calling application has to be re-compiled when the target assembly changes, or a new one is added.
Any thoughts would be much appreciated.
alex_nel
|
|
|
|
|
So you want to write a generic application that goes and gets data from any possible application running on another computer to reduce the load on your primary server?
Theres a type of program that does that already - its called a proxy.
Have you considered just running multiple application servers?
|
|
|
|
|
Hello,
I had a requirement where I have set of datatables in a dataset.
The datatables have rows which have parent - child relation,
but the relation is not defined on the dataset.
Now I want to update the database with the data present in dataset. When I update the database, I must get the newly generated primary keys back and these keys must be reflected to all the child rows where it is foriegn key.
Can anyone tell me how to do this?
Thanks.
|
|
|
|
|
An update shouldn't change the value of the primary key. If you want a new primary key, do an insert .
I are troll
|
|
|
|
|
|
Do you want to use VB6, or VB.NET? You can have VB.NET and C# projects in teh same solution, and reference VB.NET projects from C# projects and share the assemblies (i.e. compiled result, not the actual code). But you can't have VB6 and C# in the same solution.
|
|
|
|
|
yes i want to have vb.net and c# in one project.would u please tell me what i should write in my project which is in c# to call a function in my another project which is in vb?
if u help me that is very kind of u.
|
|
|
|
|
Hi,
A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language.
A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
I would like to know whether anyone has used NodeDragger to change node coordinates. Also is there a way to load an image onto a node, or can we just change its shape and color?
My other question is, I have found an application where we can save a layout but it is in jpeg format. Is there a way to save & upload a layout in GLEE/ GraphViz?
Thanks in advance.
|
|
|
|
|
In MVC , we create a business object that represents a table fields may be with the same column names or with other names then create public properties to get and set those values .
that is totally fine until now .
then i want to display that Object in a grid , i will assign the datasource property to a ILIST,Ienumerable,IDataSource object like for example List< of One business objects > then the grid will iterate through the collection of objects getting every object and accessing the properties names that will reflect the column names in the grid , and the values of those properties will be assigned to the column values in the grid
like for example
<br />
public class Customer<br />
{<br />
string FName;<br />
string LName;<br />
<br />
public string FirstName<br />
{<br />
get { return this.FName;}<br />
set { this.FName = value;}<br />
}<br />
public string LastName<br />
{<br />
get { return this.LName;}<br />
set { this.LName = value;}<br />
}<br />
<br />
}<br />
now to display that class to the grid i will put it into a list for example then
the grid will iterate through the list , reading each object public properties to draw the column names
the grid will have the same column names like the public properties
then accessing these properties values to display it to the grid .
i need to make a business object to be displayed in the grid but the problem is that the business object in my task doesn't have public properties , the public properties are replaced with a data structure that reads the table schema , "Generic Business Object" that is modifiable according to the table schema inside the data base
but finally i need to display each Generic Object to the data source controls like grid
Human knowledge belongs to the world.
|
|
|
|
|
I am not sure what value a business object without properties poses.
If you need some kind of generic data storage and transfer facility, I highly recommend that you use DataSet/DataTable/DataView. These are, for all intents and purposes, generic "business objects" that can take on the traits of a table, such as the same columns filled with rows of data from that table. You can then bind the DataTable, or if you need sorting and filtering, a DataView wrapped around that DataTable, to the GridView.
Once you have that, there are more than enough resources on the internet that explain how to bind a DataTable/DataView to a grid.
|
|
|
|
|
Thank you jon rista , but my Manager doesn't recommend for me a datatable or dataview , i don't know why .
i tried to convince him to use these tools but he refused , he tries to confuse me a little .
Anyway , i thank you very much for your response and consideration
Human knowledge belongs to the world.
|
|
|
|
|
Actually problem is, the application using the merged dll is not able to find the resources inside merged DLLs.
Let me explain the problem with the help of a demo project.
Here is what I have done in demo project
Inside one solution, I have 4 projects.
Project 1: DLL with name A.B.C.Resources1.dll and namespace A.B.C
Project 2: DLL with name A.B.C.Resources2.dll and namespace A.B.C
Project 3: DLL with name A.B.D.Resources3.dll and namespace A.B.D
Project 4: EXE with name X.Y.Z.ResourcesTest.exe and namespace X.Y.Z .
This project has the above three projects added as references.
Each of the first three projects contains :
A. Image resource (The resources are added the way you told).
B. One form and one button added to it.
I am simply setting the image for the button inside constructor of each project, as :
Button_Name.Image = Properties.Resources.Image_Name;
The fourth project has three buttons, each for one DLL and I am calling appropriate constructor on button click event.
Now, if i use three DLLs separately : everything works fine.
If I merge three dlls with command :
ILMerge /log:A.B.C.Resources.log /t:library /copyattrs /allowdup /out:A.B.C.Resources.dll A.B.C.Resources1.dll A.B.C.Resources2.dll A.B.D.Resources3.dll
and
use the merged DLL in the 4th project : The image for button of the 2nd DLL is not visible (Resources not found).
Observations and Findings :
1. After merging, the Resource class is getting renamed by the ILMerge for the 2nd DLL. This happens because the namespace of
the first and second DLL is the same.
Ex : I saw the merged DLL inside Reflector, It shows, inside namespace A.B.C.Properties,
Class Resources for the A.B.C.Resources1.dll DLL is as it is : Resources
Class Resources for the A.B.C.Resources2.dll DLL is renamed to A.B.C.Resources23043.Resources
2. For the 3rd DLL everything works fine, as it has different namespace.
3. If I change the namespace for the 3rd DLL to A.B.C and merge the DLLs, the image for buttons of the 2nd as well as 3rd DLLs are missing.
4. If I use the different namespace for each DLL and merge them and use, everything works fine.
5. So, basically I think this is due to renaming of the Resource class in the A.B.C.Properties namespace.
Is there any way to solve this, without changing the namespaces?? Because I want all the dlls to have the same namespace.
Is there any way to stop renaming by ILMerge?
Regards
Abhishek
|
|
|
|
|
Check this article [^]. The last section shows a way to have the same Namespace with different projects.
I would keep things simple by having different namespaces. You seem to be defeating the whole point of namespaces.
|
|
|
|
|
HI,
When i compile code using .net framework anyone can see all my code by using reflection.exe
How can i block this option ??
|
|
|
|
|
Obfuscation tools usually start you off in the right process.
|
|
|
|
|
Compilation in release mode makes it hard enough to read that people can't be bothered. Obfuscation tools are a waste of time anyway. Have you considered that your code probably isn't as unique and wonderful as you first thought?
|
|
|
|
|
Wrong on all counts. Compilation in release mode in no way makes it too hard to disassemble in something like Reflector. There are even extensions which will generate a whole solution for you.
Obfuscation although limited in what it can do is the best defence people have to protect their intellectual property, at least until DRM comes in.
Regards,
Rob Philpott.
|
|
|
|