all groups > c# > february 2006 > threads for sunday february 12
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Convert MFC Fonts to c# Fonts
Posted by stulika19 NO[at]SPAM gmail.com at 2/12/2006 11:16:16 PM
hi,
I have an application developed in MFC( VC++ 6.0 ) where the
information all the parameters of CreateFont function of CFont is
stored in a file. Now I am rewriting the whole application in c#. But I
am not able to map all the paramters of CreateFont to the Font class
of c# and to provide b... more >>
Conversion Question
Posted by JRB at 2/12/2006 10:42:26 PM
Hi, here is what I'm doing. I've got 4 bytes that represent a number in IEEE
format. I'm placing them in a double variable like so:
double myDouble = byte[0] << 24 | byte[1] << 16 | byte[2] << 8 | byte[3];
Since the double data type is an IEEE format, shouldn't the variable now be
a floating p... more >>
Dialing a number
Posted by Radi Radichev at 2/12/2006 9:25:56 PM
Hi!
I'm using .net 2.0 C# and i was wondering if there is any way of dialing a
number, that i take from a database, inside an application? Thanks
... more >>
Running a socket server program at Windows XP startup
Posted by duzinga at 2/12/2006 8:56:35 PM
I am trying to have a server program that runs at startup and accepts several
commands from the clients. One of the commands is to play an audio file. I am
using Microsoft.DirectX.AudioVideoPlayback.Audio class for that purpose.
My problem is whenever I send a command to the program windows g... more >>
VS2005 - Dragged web control becomes link in code view???
Posted by Steven Nagy at 2/12/2006 8:12:38 PM
As above, in VS2005 when I drag a web control I made onto my form while
in code view, it creates a link instead of the web control instance.
Is this configurable?
Normally I try to hunt down my own answers except when there's 5
million possible places to look, such as in Tools -> Options.
I... more >>
"new"
Posted by Mochuelo at 2/12/2006 7:04:39 PM
Hi,
I know what "new" (and "delete") does in C++, which I've used for
years. I have worked with C# for some time, too, but ok, there are
some curious things about "new" in C# that I still don't grab. For
instance, independently on when the garbage collector kicks in, the
following code should... more >>
Sockets Question: What's the use of SocketFlags enum?
Posted by Arronax at 2/12/2006 6:57:17 PM
Just a basic question after I didn't see any examples on the web other
than the "None" enum.
Is this just a way of sending "hints" to server/client, or is there
another more valuable use to this?
I'm speaking of the following:
socket.BeginReceive(data, 0, 255, SocketFlags.None, new
AsyncCa... more >>
Newbie question...
Posted by John Jones at 2/12/2006 6:12:32 PM
I've been asked to modify a C#.NET app without much exposure to the Visual
Studio 2003 IDE and I have a question.
I'm looking at a container object called a Tab Group that has about 6 tabs,
each with text input boxes and combo-box dropdowns, etc. I can see the form
(.aspx file), but cannot gr... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Web page screen scraping?
Posted by Ronald S. Cook at 2/12/2006 4:08:49 PM
I've been asked to extract data from web pages. Given that they are
rendered in HTML and not any sort of XML I'm wondering how to go about
"scraping" such a web page of data.
Can anyone give me any starting place?
Thanks,
Ron
... more >>
HREF QUESTION (cross)
Posted by Savas Ates at 2/12/2006 3:05:06 PM
I saw an url like this
<a
href="{nocache:426d6de96f848e23f89ef8d2a557145f#0}&p=http://www.isbuluyorum.
com>CLICK</a>
What is the purpose of using href="{nocache:1321sdsa
Does anyone have idea about it ?
... more >>
1/22/2006 .Net 2.0 Redistributable Package Info
Posted by Flix at 2/12/2006 3:02:40 PM
I found this new version on the MS website.
I have the November 2005 version installed.
Should I disinstall it and update it?
I found no info about changes...
Also I'm downloading the SDK of the previous (November) version. Can I mix
the old SDK with the new Redistributable Package?
... more >>
Communicating property changes
Posted by David Veeneman at 2/12/2006 2:11:44 PM
This posting is for the Google crawler and requires no response.
I have created a multi-level object hierarchy, in which the root object
needs to be notified whenever any property of any object in the collection
changes. I wanted to enable this communication without passing child objects
re... more >>
VB.NET or C#.NET ???
Posted by Milan at 2/12/2006 12:23:16 PM
Hello,
I would like to ask you this question. I am experienced in programming
in VBA and I want to upgrade my knowledge to Visual Studio 2005 now. I
hesitate whether to aim to VB or C#. Since I am familiar with VBA I
would like to choose VB but I heart from my colleagues that VB is a
"dead" l... more >>
Socket Server buffer size
Posted by Macca at 2/12/2006 11:57:15 AM
Hi,
My application uses an asynchronous socket server. The question I have is
what i should set my socket server buffer size to.
I will know the size of each data packet sent across the network and was
considering setting the buffer size to this.
In the examples I have seen on the net ... more >>
Consuming C++ dlls in C# - struct definition
Posted by Raj at 2/12/2006 11:24:38 AM
I have an unmanaged C++ dll which Iam trying to consume in C#.The code is as
below
//Unmanaged dll definition
typedef struct {
float a;
bool b;
char * c;
int d;
unsigned e;
unsigned char * f;
} sample;
//Managed C# dll definiton
[StructLayout(LayoutKind.Seque... more >>
Thread-safe
Posted by Senna at 2/12/2006 9:27:27 AM
Hi
I have some questions about this code, http://code.doria.se/?c=18.
1. Will the Adapter class be thread-safe?
2. In the #region Way 1 I use lock(_lockobj) every time I go about and do
something, is this necessary?
3. If the answer in question 2 is no, when are one suppose to use loc... more >>
Use image in project as a resource
Posted by sklett at 2/12/2006 9:10:30 AM
I've got a couple images in my project that I need to pass to some other
assemblies. I waned to pass them as an Image object. I was hoping there
was some way that I could load the images files without needing to use the
full path and Image.FromFile() - it seems that there should be some way ... more >>
Type.GetType returns null for Systems.Windows.Forms.TextBox
Posted by Nabeel Moeen at 2/12/2006 5:09:27 AM
Hi,
the foillowing line returns a null value
Type.GetType("System.Windows.Forms.TextBox")
why is that so ... and what should i do if i need to compare if the control
is a textbox or not?
Regards,
Nabeel... more >>
ASP.net loading page
Posted by Sontek at 2/12/2006 3:16:03 AM
What i'm trying to do is create a page with a loading image on it, Then
I'll start a method in a new thread that does all the work and then
fires an event which will redirect the page. Heres my code:
public partial class quote_Loading : System.Web.UI.Page
{
private delegate void LoadComp... more >>
Garbage collector messes up events?? HELP!
Posted by hakan_cn NO[at]SPAM hotmail.com at 2/12/2006 2:48:41 AM
Hi all!
Sorry for the cross-post, I really have a difficult problem and need
some help badly.
I have a VB6 ActiveX component (dll) that listens to a real-time data
feed of stock quotes (built in an OCX) and then passes them on using
events.
The consumer of these VB6 events is a C# dll us... more >>
DNS .Resolve & .NET 2.0 Headache???
Posted by kvnsdr at 2/12/2006 12:30:50 AM
I can type an IP address and receive Internet domain name and my workstation
name however no other IPs of computers on our internal network will resolve
to a thier machine name only to the same IP that is entered. What's up
Microsoft????
I can say that before we switched over .NET 1.1 to 2.... more >>
Converting instances to byte[]
Posted by Curious at 2/12/2006 12:05:53 AM
Hi,
I have the following class, and I will be creating instances of it to
transfer it over a networkstream. Now I need to convert instances p1,
p2 and p3 to byte[].
How can I do this?
Can someone help me out
Thanks in Advance
Person p1 = ("MyName", "MySurname");
Person p2 = ("MySurn... more >>
Hosting a web browser component in a C# winform
Posted by E.T. Grey at 2/12/2006 12:00:00 AM
I would like to host a web browser component in a Winform. I have two
questions:
1). Is it possible to run an applet (if the URL pointed to has an applet
in it)?
2). Is it possible to change a property (for example) of the web
browser, so that it does not display the address (i.e. the URL ... more >>
Getting Local machine IP address
Posted by Chakravarti Mukesh at 2/12/2006 12:00:00 AM
Hi all,
I need to know the IP address of the machine where the application is
running. How can I get this?
Thanks
Chakravarti Mukesh
... more >>
|