|
I've been using C# for about a year now and I'm enjoying it. (first lang. I've enjoyed).
I do have some definite problems with it though:
1. If it's compiling to the same MSIL as VB.NET and VB.NET has untold hacks to get it to the place that it is now (like adding OO to it), then how on earth can the C# only compile to the same thing. This is a brand new language - barring the fact that Anders Hejlsberg also worked on VJ++.
2. The fact that C#'s main competitor is ... VB.NET. If there was no VB.NET then the current VB "programmers" would be forced to move into the world of Java/C#/Delphi.
3. The MS coders used MS Frontpage to write the .NET splash -- take a lot, I kid you not.
Simon
President of the Group for the Abolishment of Visual Basic Programmers World-Wide.
|
|
|
|
|
1. MSIL is an intermediate language. It has very little to do with VB.NET. With the right compiler you could compile almost any language to MSIL including Perl, Java, C++, C, Fortran, etc.
2. VB.NET is not C#'s main competitor. Where did you get this idea? So the rest of your logic is a bit flawed.
3. so.
President of the Group for the Abolishment of Visual Basic Programmers World-Wide.
From your logic you almost sound like a VB programmer Wouldn't that be suicide?
Todd Smith
|
|
|
|
|
hi,
I am developing an application to download maps from web pages, and wanted to know how would one develop an application to enter requests on web page forms automatically, via the application
and then having retrieved the page dowload an image contained in that page
|
|
|
|
|
How about a win32 example which shows how to change the background color of individual items of a listview control ?
I have been trying to find and know how to do this but till now without much success
author
|
|
|
|
|
See Neat Stuff to do in List Controls Using Custom Draw. It uses MFC, but it's just message handling so it'll be simple to change the message handler over to straight Win32.
--Mike--
http://home.inreach.com/mdunn/
This posting is provided "as was" with no warranties, guarantees, lotteries, or any of those little bags of peanuts you get on planes. You assume all risk for crossing the street without holding mommy's hand. © 2001 Mike's Classy Software. Member FDIC. If rash develops, discontinue use.
your with and
|
|
|
|
|
Hi Michael
Thanks for replying. I have seen that code. but it doesn't seemt o work for me in Win32 or maybe I have done something wrng i just can't figure it out.
Would appreciate help on this. I have posted the problem yesterday in the Visual C++ discussion board but nobody replied.
I have given details of my problem there and I can't seem to figure out the problem. I will put the stuff here again.
I am making a win32 dll (non MFC) and i have these three functions which I am using (i have more functions but may not be exactly useful here)
HWND WINAPI EXPORT MakeListView(HWND hwnd,long x ,long y,long width,long height)
{
INITCOMMONCONTROLSEX iccex;
iccex.dwICC=ICC_LISTVIEW_CLASSES; //ICC_WIN95_CLASSES;
iccex.dwSize=sizeof(INITCOMMONCONTROLSEX);
InitCommonControlsEx(&iccex);
hwndTT = CreateWindow("SysListView32","",WS_CHILD | WS_VISIBLE | WS_BORDER | LVS_REPORT | LVS_SHOWSELALWAYS , x, y,width,height,awParam->hwnd, NULL, hInst, NULL);
ListView_SetExtendedListViewStyle(hwndTT, LVS_EX_FULLROWSELECT );
//initialize the LVCOLUMN structure
//The LVCOLUMN is used for adding title to the header of listview.
lvc.mask=LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
lvc.cx=100;
lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_STATE;
lvi.state = 0;
lvi.stateMask = 0;
return(hwndTT);
}
//The above sample code is for making a listview and it returns a handle
void WINAPI EXPORT ListChangeItemColor(HWND listviewhandle)
{
glPrevWndProc = SetWindowLong(listviewhandle, GWL_WNDPROC,(LONG)(WNDPROC)DoNotify);
}
//this is the second function which accepts the listviewhandle and attempts to use the window procedure of the ListView. I think this is the problem, not sure if i am doing this right.
long DoNotify(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_NOTIFY:
{
LPNMLISTVIEW pnm = (LPNMLISTVIEW)lParam;
switch (pnm->hdr.code)
{
case NM_CUSTOMDRAW:
{
LPNMLVCUSTOMDRAW lplvcd = (LPNMLVCUSTOMDRAW)lParam;
if(lplvcd->nmcd.dwDrawStage == CDDS_PREPAINT)
return CDRF_NOTIFYITEMDRAW;
if(lplvcd->nmcd.dwDrawStage == CDDS_ITEMPREPAINT)
{
if(!(lplvcd->nmcd.dwItemSpec % 3))
{
GetClientRect(hwnd,&rect);
MessageBox(NULL,"I am here","help",MB_OK);
lplvcd->clrText =RGB(255, 0, 0);
lplvcd->clrTextBk = RGB(0,0,0);
InvalidateRect(hwnd,&rect,FALSE);
return(CDRF_DODEFAULT);
}
}
}
}
}
default:
return(CDRF_DODEFAULT);
}
return CallWindowProc((WNDPROC)glPrevWndProc, hwnd, msg, wParam, lParam);
}
//This is the window procedure which i call from ListChangeItemColor
Could you tell me what i am doing wrong. I have thought of this for almost the entire 1 whole day and for some reason can't seem to get it working. I saw your code (MFC version) but i still don't know what i am doing wrong.
HELP
|
|
|
|
|
Does any one has any code in VB.net that allows me to save
the edited business info in uddi?
Regards,
adeline
Have a nice day and thanks in advance,
adeline
|
|
|
|
|
Hi all,
I want to write a program that can run a cgi scrip from a domain in VC++.
And it communicate with domain through proxy.
If you have any relative information, please show me! Thank you very much!
Best regards,
BUNG
|
|
|
|
|
CGI scripts are run by sending a HTTP GET or POST request, and the results will be in the HTTP response. If you are using a proxy, you send the HTTP request to the proxy instead of the final destination, and give the absolute URI of the CGI script in the request.
|
|
|
|
|
I need samples of code on how to
create win32 programs with a visual
inferface like KPT Bryce and KPT plugins for photoshop.
So basically, nothing like the standard windows interface.
I've been trying to sort this for years, and I believe
it's an important issue with XP basically looking like Mac Applications
- visually appealing. It's what customers want.
I've only found samples on designing curvy windows.
Is there a standard way (easy way) for creating KPT Bryce like
interfaces??
Haniff Din
www.haniff.co.uk e-mail: haniff@magicaldesk.com
|
|
|
|
|
What API will allow me to do this. How can I tell if path is already mapped. I am using a win2k machine.
Thank You,
SAK
|
|
|
|
|
WNetAddConnection2
Best Regards....
PD.
If you wait for a couple of day I will publish a set of Net classes....
Carlos Antollini.
Today is Friday!!! for All!!!
|
|
|
|
|
|
I have started programming in 2D graphics and would like to know if anyone could help me. I want to create a clock using circle() and line() functions. Then have the clock ticking in seconds. If anyone would have an answer it would help me a great deal. I want to use Borland C++3.1 to create this clock. Please help I want to try and get it finished by next Friday??
Sarah Fox
|
|
|
|
|
|
Flubby: It depends on what you're doing.
If you're ok with depending on MFC, then VC is, of course, better. But for straight API programming I find BC's code better, much better. (except for multithreaded apps where there is a problem with the memory allocation libraries and you've gotta work extra)
Too bad Borland is no longer providing support for BC and I'm forced to consider moving to VC: VC's resource editor sucks big time and precompiled header handling is also very bad.
And what's with this stupid message "file XXX.cpp has changed.. do you want to recompile?"
you feel like answering "Nooooo.. just ignore the 50,000 extra lines I've just typed.. OF COURSE I want you, a compiler, to compile!.. haven't I payed for that???"
What VC does kick BC's ass is in project-file handling: In BC, sending a project to someone else is sh*tty because the project files keep references to your computer's paths.. while in VC, the paths are relative.
MAN! I wish Borland would keep enhancing BC.. but, too bad: I'll probably have to cope with VC's creepy auto-generated code.
Sonork ID: 0.2
|
|
|
|
|
Migs wrote:
And what's with this stupid message "file XXX.cpp has changed.. do you want to recompile?"
Hm... I think the message reads either:
1. The file has changed, do you want to reload?
2. The project settings have changed, do you want to rebuild.
It appears that you are actually editing the files outside of VC++ while keeping it open, which is where you trouble would come from. Use built-in editor and you should be fine. Or perhaps you open the same project twice in different VC++ instances...
|
|
|
|
|
You'd probably do better in the Visual C++ forum, although you're not using VC++, I don't think this forum gets much traffic.
Why are you using BC ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
BC is one of the very few compilers still at a price users on a budget can easily afford.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
I have a list of data that is inserted to a text file in this fashion:
data.txt:
**********
sean
bob
sally
joe
smith
**********
When I add to this list, it adds new names to the bottom of the list. I use the writeline command to write. Is there a way of added to the top of the list instead of the bottom of the list.
Is there a command that writes to the top of the line?
If I need to use a DO WHILE loop how should I get the source file in a temporary variable? RIght now im using a temporary file to store the old contents of the text file...
Any help would be great!
Thanks!
|
|
|
|
|
since they are plain text files, you could try this :-
create file f1 with your new text
lest say f0 was your old file
now copy f1+f0 -> f2 using the dos copy command [I think you can make calls to batch files from ASP]
put this in a batch file
copy f1+f0 f2
thus you now have f2 with your new contents ahead of your old content
delete f0 and f1 and rename f2 to f0
Nish
|
|
|
|
|
<name>"&objRecordset("buffet")&"
this is one of the sentence for my programme.
there r four choices in the recordset.
wat should i add in the programme,so as the item which the customer had chosen will be inserted into the database???As there's another script after this,the inserting of data will be carry out in the next script.
|
|
|
|
|
1. Developing a "Screen Saver"
2. TAPI 2.0 (3.1 has been pulished though)
3. "Event logging" in Windows 2000
Let me know, and I'll start it off this sunday.
Cheers,
Mehdi Mousavi
MSVC++ Programmer
|
|
|
|
|
I think an article on writing screen savers would be useful.
You could show us how to draw on the desktop and stuff like that
And I hope it will be in C++
Nish
|
|
|
|
|
I have a task at work where the simplest implementation (from the user's perspective)would be in the form of a custom toolbar that would work in Excel. The application deals almost exclusively with manipulating speadsheet data, so I think a toolbar or other groop of buttons would be an elegant way to implement this. I've never written such an application before, but I have done similar stand-alone Windows applications. Where do I start? Where's the best information to get going on this? Are there examples around anywhere?
RhinoBob
|
|
|
|