473,378 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

DLL Newby Questions...

Hi,

I had to convert a Win32 EXE project with some forms and classes into a DLL Project.
When I instace the new DLL project from a test program I see all forms and classes...
There is any way to just see one class, for example some forms and classes are only private and only one is public.

I have a method in one DLL class that opens a form.
I need to pass a ref variable to that form. there is any way to do this?
Example: Form OForm = new frmTest();
OForm.Show(I need to pass a ref variable);
Thanks for your help,
Bernardo

Nov 15 '05 #1
3 1108
Bernardo <bp****@sapo.pt> wrote:
I had to convert a Win32 EXE project with some forms and classes into
a DLL Project. When I instace the new DLL project from a test program
I see all forms and classes... There is any way to just see one class,
for example some forms and classes are only private and only one is
public.
Just declare all the other classes as internal - in fact, just leaving
out the modifier entirely will always make whatever you're declaring as
private as makes sense, in C#, which I love.
I have a method in one DLL class that opens a form.
I need to pass a ref variable to that form. there is any way to do this?
Example: Form OForm = new frmTest();
OForm.Show(I need to pass a ref variable);


Why not pass it to the constructor instead? I'm not really sure of what
you're after here. You also need to be clear about the difference
between a reference type variable, and passing a parameter by
reference. See http://www.pobox.com/~skeet/csharp/parameters.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2
Jon Skeet [C# MVP] <sk***@pobox.com> wrote:

<snip>
See http://www.pobox.com/~skeet/csharp/parameters.html


Nice page -- very clear.

I found a minor error though -- under the "Reference parameters"
heading there is a sentence that reads, "Rather creating a new storage
location for the variable in the function member declaration, [...]".

Should that be, "Rather than creating a new..."?
Nov 15 '05 #3
C# Learner <cs****@learner.here> wrote:
Jon Skeet [C# MVP] <sk***@pobox.com> wrote:

<snip>
See http://www.pobox.com/~skeet/csharp/parameters.html


Nice page -- very clear.

I found a minor error though -- under the "Reference parameters"
heading there is a sentence that reads, "Rather creating a new storage
location for the variable in the function member declaration, [...]".

Should that be, "Rather than creating a new..."?


Yup - thanks for that, I've fixed it now.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Nick Mudge | last post by:
Hello, What is the best way for a new person to learn PHP and still new to programming to learn PHP. And also to learn how to use PHP with other technologies to write really good database driven...
3
by: charlie fortune | last post by:
I have a simple html form and a bit of PHP in the same page, and I want the script to get the entry from the form, and write it to a file. I dont think I'm allowed to use POST on my webspace. Here...
9
by: Damien | last post by:
I have just built a simple stopwatch application, but when i f5 to get things goings i get this message, An unhandled exception of type 'System.ArithmeticException' occurred in...
2
by: Marcello Pietrobon | last post by:
Hi, python really looks a great language. I wish C++ would have some of them ! Here the questions 1) I preferred to use the newsgroup but the server comp.lang.python / c.l.python ( as it...
3
by: dit | last post by:
I want to start something small, like a learning program. I've been looking and learning python for about 4 months; and I think that I have the basics under my belt... is it worth trying my own...
8
by: WindAndWaves | last post by:
Hi Gurus I am a newbie.... and I was wondering if it is possible to maximise a screen in javascript. right now, I use this code: A HREF="heritage.html" onClick="msgWindow=window.open...
8
by: Ask | last post by:
G'day All, Just thought I'd drop in and say hi. I'm new to Python, but old to software development. Python is one of the languages used in my new job, so I've just bought a book, read it, and...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
2
by: johnnyG | last post by:
Greetings, I'm studying for the 70-330 Exam using the MS Press book by Tony Northrup and there are 2 side-by-side examples of using the SHA1CryptoServiceProvider to create a hash value from a...
4
by: insomniux | last post by:
Hi, I need to check if a kernel module is loaded on a linux box.My linux version 2.6. If the module is not loaded, I need to load it. Should I do that with a system command (modprobe) or is there...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.