o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Assigning Object to value is not producing compiler error -

comiler is not throwing errorcase1)
=====================
private sub command1_click()
Dim x As new StdFont
x=2
end sub


Note :
====

In the above code i am creating an object for stdfont class & then i am assigning some value/string to that object . if i run the above code i am not getting any error .

but i am expecting that compiler will throw a "data type mismatch error"

but if i run the above code with the set keyword (see code below)during assigning i am getting comiler error.

comiler is throwing errorcase2)
==================
private sub command1_click()
Dim x As new StdFont
set x=2
end sub

My question is , in both the cases case1 & case2 i am handling the object wrongly ( ie x=2 and set x=2). in both cases compiler should throw an error but it is throwing error for case 2 only . why ??

 

Assigning Object to value is not producing compiler error -
comiler is not throwing errorcase1) ===================== private sub command1_click() Dim x As new StdFont x=2 end sub Note : ==== In the above code i am creating an object for stdfont class & then i am assigning some value/string to that obj


Compiler won't compile to Native code -
When I try compiling (producing an exe) vb6 sp6 project (any project, even an empty form) the compiler gets half way through the compile and then produces an error msgbox with no error message or title. The projects run fine in the IDE and I can compile them to a P-Code exe but I can'


INTERNAL COMPILER ERROR ugh! -
have you ever seen before, a weird compiler error like this? Fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'e:\work\utc2\src\P2\reader.c', line 1987) it points on a module (bas) file, but im not sure which line causes the error.


Problem with assigning an Object -
I am having an issue with assigning a value to an object. I am setting an object equal to one of the printer on the machine so I can pause and unpause the print queue progrmatically. This problem is that I am assigning the value at startup and it takes several seconds (5 - 10) to ass


which compiler -
the time to learn c++ has finally arrived. so what's the best compiler? Turbo C++ Explorer Free Microsoft Visual C++ 2005 Express Digital Mars C/C++ Compiler (Symantec C++ Replacement) Cyclone C GNU C/C++ Compiler and EGCS Pelles C Compiler Cilk ANSI C Based Compiler


Sending E-Mails From a Windows Service -
I've been sending e-mails from Windows applications for quite some time using the 'MailMessage' object in the 'System.Web.Mail' namespace. I've had nothing but success stories until one day I tried to perform the same action in a WINDOWS SERVICE. After assigning all the necessary prope


[2008] compiler crash -
Hi all I have written a simple program that needs two arrays of 300,000 cells each. The program searchs each cell for certain criteria and returns an answer in a third array, again of length 300,000. My compiler faults and usually vb itself crashes. This cannot be the computer as


Compiler Theory -
Well I just wanted to post this spam... What I was wondering is... how did somome make a compiler? Surley you can't because you need a compiler to compile the compiler lol... get what i mean? this has annoyed me lol


nice error i got here -
Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 5315C743): likely culprit is 'BEGIN'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing


Tomcat 5 -
I have an JSP, when I run this, I'll get this message (I am 100% sure that the code is ok): Code: HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an i


what compiler to use -
i'm just starting to get into intermediate level stuff like api and dx, in c++, and i want to know if it matters what compiler i use- i'm currently using bloodshed dev-c++. can a compiler like this use windows api and dx just as well as say, microsoft's compilers? i really dont want to


Dev C++ (specify compiler) -
I have a c compiler for pic microprocessors, and I want Dev C++ to use it. I found where to point to it. I got that far. When I compile in Dev C++, I can see the output from the pic compiler, so I know that the correct compiler is being used. The problem is that Dev C++ is passing


Urgent: please help me... -
Hello! I try to run a quite simple code such as sub test MsgBox date end sub but VBA compiler discovers an error: Compiler error: Can't find a project or library Please, what is wrong with my VBA???


Internal Compiler Error -
Anyone had a problem where code will compile and run fine on a MSVC w/ SP 4 but when you try it on one with SP 5 it gives you fatal error C1001: INTERNAL COMPILER ERROR? Just wondering if anyone knows if this is a bug or not. If I take of SP5 and put back 4 it works. Yes I have trie


Need help w/C++ -
Okay, I'm not sure what the problem is, but whenever I try to compile anything on my Standard Edition 6.0 C++ compiler, I get an error that says: Error spawning cl.exe And the wierd part is that it still says that even when I have done no coding whatsoever...I think I'm missing som


C++/D -
Dont know if anyone has heard of it, but Digital Mars has a free C++/ compiler availible. If I recall correctly, it is/was written by the guy who wrote the Symantec C++ compiler. In addition, they have an alpha D compiler (...) along with a D language spec. I have never used either


Making a REAL compiler -
Hello, I want to make a REAL compiler which writes machine code (not those which stick some text at the end of the file, i mean a real compiler fo WIN32). I have no idea how to do that but ASM compiler is very small size and maybe it is quite easy to make(i think). Does anybody


Assigning menu shortcuts on runtime -
Is that possible? As I have a few popupmenus that are using the same shortcut, but appears on different forms. I get an error when assigning the same shortcut in the Menu Editor. So the only way is to do it during run-time. Thanks Harddisk


C++ Ide + Compiler -
Hello all. Well I have done programming in vb 6 but now want to change to C++. But I have no idea what to do. I am going to buy a book to get started but I don't know what to do. For vb you have visual studio for the ide and things with a built in compiler. But I heard C++ has them sep


Software: C++ editor/compiler -
I'm relatively new to programming. I bought Sams Teach yourself C++ in 21 days and got this website out of the preface from one of the authors. It recommends using a C++ compiler and editor along with the book. I'm looking for guidance on this. Are all compiler and editors basicall


Borland Free C++ Compiler -
Because i heard a lot about the free Borland C++ compiler i downloaded it. I've never used anything else than VC++ in my C++ life (never used command line tools) so i want to know if BCC can do something VC++ compiler can't or VC++ is more powerful any way you look at it. Anyway , i am


What made vb -
What compiler made vb? What compiler made that compiler? What compiler made that compiler? Then eventually the question is, what compiler made asm? Then probably what compiler made binary?


Which compiler do you use -
Which compiler and IDE (if applicable) do you use for c++? It doesn't matter which OS it runs on. This thread for the newbies who are unsure of where they should start. I use minGW as my compiler and Dev-C++ as my IDE.


compiler for vb -
i need a compiler for vb so i can turn my .vbp and .frm into an .exe.. i have microsoft visual basic 6 working model edition and i need a compiler bad!! please help where can i find one or get one ?


C# compiler anyone knows how it's written -
Do you know if MS announced what parser/compiler generator tools they've used to create the C# compiler? just curious


Good IDE / Compiler for C++ -
Tell us some of the IDEs and/or compilers that you use for C++ or C, or both. Personally, I stick with Dev-C++ and Visual C++. On Linux/UNIX I use gcc. Also, does anyone know of a portable ide/compiler for C++? As to use C++ on computers without the compiler, like school, off of


[Delphi] Creating a compiler compiler.. -
im looking for someone with experience on using DCG, knowledge of Lex/YACC etc. Im new to compiler construction and have just got some books to read. The aim is: Form Designer (15%) Components created by pure API - no packages (30%) Compiler (0%) Syntax Highlighter (100%) Curr


[C++] COmpiler error -
Hey guys yesterday i just downlaoded and installed Visual basic C++ from windows. I am having an error because when i press debug a Messagebox says "Unable to start program The system cannot find the file specified" I*m doing everything correctly!! I think i have some problem


assigning byte arrays -
dim b1(1 to 250 ) as byte dim b2(1 to 250 ) as byte I get an error "can't assign array" when b1=b2 is there an easy way to do this other than assigning each element in a for loop?


Strange VC++ Error, Desprate, Please Help! -
When trying to compile a program, even the simplest of programs, im getting an error in the debug window, here it is word for word: --------------------Configuration: try - Win32 Debug-------------------- Compiling... try.cpp c:\c++\try\try.cpp(3) : fatal error c1001: INTERNAL


VB Compiler Error -
Any time I try to create or open and existing Windows App a error message pops and says that there was a problem with the compiler. I found a hotfix for this problem but when I click on the link nothing is there. If anybody knows a way around this or the location of the real hotfix i


VB6 Binary Compatibility -
Hi, I have a problem compiling my VB6 project using the command line compiler. When the project is compiled in the IDE the compiler asks if I want to Break Compatibility or Preserve Compatibility. I always select Preserve and click the checkbox to treat other incompatibilities th


More Advanced VB Help Needed -
Has anyone got any ideas on how I would distribute the VB compiler with my project. I would like my VB program to allow the user to set various options etc, then make an .exe file using the users options. I have been told that I would have to distribute the VB compiler with my app if i


My compiler runs really slow, is this normal -
My computer is 2.4 GHz and yet everytime I do as little as deleting an empty line the compiler freezes for a second or two and then I regain control. Is it like this or an error checker of sort is messing me up?


Working with a new compiler -
hi all!! i have just started working with a new C++ compiler, Dev C++ with GCC compiler. i used to work on the older Turbo C++ compiler (version 3). how can i write a code for graphics on Dev C++? in Turbo, one has to include Graphics library and provide the path for bgi folder e


C++: D3d_overloads -
Whenever I add #define D3D_OVERLOADS my compiler gives this error, for no apparent reason. I have all the other essential includes and library's added. --------------------Configuration: City - Win32 Debug-------------------- Compiling... main.cpp c:\steve\programming\sdk\dx7


side effects -
I'm trying to get this to work: int k=1; assert(k^(k=0)); but it seems like the VC2003 compiler is assigning k first no matter which side i put it. When I do this however: int k=1,j=0; assert((j=k)^(k=0)); it evidently assigns k after evaluating the left side. Is this sta


Client Install Error! HELP! -
I made a simple data entry app for my client. It uses recordets , one statusbar control and no special controls except textboxes etc..I connect to a remote SQL database over the internet passing the correct security credentials. I compiled with the InnoSetup compiler, When I test it


Run time error 424 -
Private Sub Form_Load() WebBrowser1.Navigate "http://www.yahoo.com" End Sub While running the code the compiler reports an error: Run time error 424 Object reguired Does anybody know what's wrong? Please!!!


Error when removing project -
I made a new project and saved it as myProject then put it in C:\Folder\Projects\myProject. Everything ran well. But trouble came when I removed myProject to C:\Folder\myProject or to C:\myProject. When I tried to compile, I got an error message: Visual Basic compiler is unable