

InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
2501. |
Solve : visual studio 2010 limited to 50% processor speed?? |
Answer» Hey all, how are you doing "heavy calculations" with Visual Studio? I was WONDERING that. Curious minds need to know.. |
|
2502. |
Solve : Vb 2006 problems? |
Answer» Im trying to load "Microsoft Internet CONTROLS" COMPONENT but I got the ERROR "File not found..." etc.. but I managed to fix that by using RegEdit and CHANGING some value. But not it gives me the error ""C:\Window\system32\ieframe.dll" could not be loaded". |
|
2503. |
Solve : RSS Feed Reader?? |
Answer» I want to MAKE a Desktop, gadget-like program which will display my RSS feeds on the desktop, however I have no strong knowledge in programming so this is a problem =\ Yea, this is the bit when you guys post OK happy to oblige. Good luck. Quote I want to make a Desktop, gadget-like program which will display my RSS feeds on the desktop, however I have no strong knowledge in programming so this is a problem I can see how it would be. |
|
2504. |
Solve : My first C++ program? |
Answer» i just started to read C++ for dummys and i have coded a CONVERTER for tempature using the tutorial and when i run it through the compiler i get an error on line 13, the complier im using is dev C++ .... |
|
2505. |
Solve : Deleting file at first startup? |
Answer» Hello everyone |
|
2506. |
Solve : Using ogg decoder dll with vb6? |
Answer» I am working on a small game in VB6. All of my sounds are in OGG format. I found a DLL here: http://www.blastbay.com/oggdec.php I Shall attempt to create VB6 compatible declarations. Thanks. You probably already saw this, but the readme file contains the C declarations.Yes, I saw that. I managed to sort of get the INITIALIZATION routine working, but it always returned 0. The stupid method of using GetProcAddress() is what throws me. Then I noticed something you've already got it half working- to the point of actually decoding it. Could you post that By the way: the DLL only decodes the data; it doesn't actually provide any way to play it.Quote Could you post that I just used the function that decodes to a wave file. Here is the declaration in C: Code: [Select]BOOL Oggdec_DecodeFile(char* source_filename, char* destination_filename); Here is what I typed into VB: Code: [Select]Private Declare Function Oggdec_DecodeFile LIB "blastbay_oggdec.dll" (source_filename As String, destination_filename As String) As Boolean Private Sub Form_Load() Oggdec_DecodeFile "blabla.ogg", "blabla2.wav" End Sub The problem is that that creates a wav file instead of sound data in memory. Quote By the way: the DLL only decodes the data; it doesn't actually provide any way to play it. Right, but it decodes to raw PCM data which windows is capable of playing out of memory (so I thought).If this proves to be too much of a hassle, I will take a look at that BASS thing you mentioned.Yes, you could play sound directly from memory using PlaySound(filename,SND_MEMORY Or SND_ASYNC) but... well, there are some issues when you do it that way... Also, I've found that PlaySound() leaks catastrophically for some reason, at least on Vista/7. Then again, getting VB6 programs running well on Vista/7 is like pulling teeth! My Older Visual BASIC 6 "Poing" game just uses WAV files and DirectSound. Anyway, BASS is more a library for playing sounds then a simple decoder; The reason I bring it up is because all my games sounds are OGG format as well and it works just fine. Personally I wrote several classes (C#) for wrapping the Sound functionality into "drivers" so that I could use a different sound library or add support for more libraries further on; so far I have two- IRRKlang, and BASS.NET. The BASS downloads contain Visual Basic 6 samples and declarations though, so there should be as much fiddling. as for the blastbay dll, I don't know. I can get it to call the initialization routine but it never seems to work properly, always returning zero.I think, you can choose a good video converter to help you, just follow me to use RZ Video Converter which can convert any videos or audios between different formats with good quality, hope it can help you. good luck. |
|
2507. |
Solve : One installer for multiple application + one start icon? |
Answer» HI All, I very new to windows and this forum and do not even know a bit of what i have to do. My problem is as below: I have to create an installer which will install three things at once: * Application server * Database server * Web browser After the installation is done, there should be an icon which should start the application server, database server and open the installed browser when icon is clicked. How do i achieve this? Can anyone point me to a tutorial link or some example? Any help would be appreciated. Thanks in advance. -- VikramHi. If I were you, I would create a batch file called install.bat. Inside that batch file you could say something like this: start /wait installer1 start /wait installer2 etc... Then you would create an archive in 7-zip that CONTAINS all of the setup PROGRAMS and the install.bat file that you created. In ORDER to do this you need to download and install 7-zip (just use google) Write the install.bat I told you about. 7-zip all the files into one archive. Then use my utility found here: http://www.mediafire.com/?ga696x3j2ar4jna . . .to create an installer SFX.Quote from: Linux711 on January 13, 2011, 09:25:59 AM Then use my utility found here: http://www.mediafire.com/?ga696x3j2ar4jna If they have already installed 7-zip they can just use the right-click context menu to turn it into a SFX Archive.Quote If they have already installed 7-zip they can just use the right-click context menu to turn it into a SFX Archive. Yes, but it won't work how the OP intended. He wants all three INSTALLERS to run. My version of the SFX allows for a batch file to execute after extraction, and start all the seperate installers.Thank you all for the help. I will try the suggestions and get back if something works or not.... -- VikramBatch file thing worked fine and I also found a free tool which exactly solves my problem. http://www.jrsoftware.org/isinfo.php Thank you all for the suggestions. -- Vikram |
|
2508. |
Solve : VB .NET 2010: Auto Scroll to Bottom? |
Answer» Could somebody PLEASE explain to me how to make a MultiLine textbox scroll to the bottom automatically? I am using VB .NET 2010. I just can't figure it out. |
|
2509. |
Solve : How to Search, Compare, and Replace text in the TextBox in J2ME?? |
Answer» Hello, good evening. Anyone? Please do NOT bump thread. If anybody feels like answering, they will. can you not use the String's inbuilt ReplaceAll() method? |
|
2510. |
Solve : Trying to create a .exe out of a source? |
Answer» I really dont know much about programming so i'm asking for alot of help. I am trying to convert a SOURCE into a .exe file that anyone can install. The source is the nintendo 64 emulator 1964 version 1.1. Can anyone offer some help with this matter?Pardon me. If you don't know now to do it why would you want to? I really dont know much about programming so i'm asking for alot of help. I am trying to convert a source into a .exe file that anyone can install. The source is the nintendo 64 emulator 1964 version 1.1. Can anyone offer some help with this matter? if you are on a linux system, it's as simple as going into the project folder, and typing ./configure and then MAKE to compile it. With windows, it's not so simple; you would probably need to download and install gcc, which works best when you have the coreutils installed anyway (and/or msys) and so forth; the Windows Visual Studio "Solution" file doesn't work as far as I can tell. However geek has a point, specifically since the source release for 1964 1.1 includes the binaries. I am trying to add the new version of 1964 to a emulation website, but the way the uploader is set up is the real problem. It only allows .exe programs to be upoaded. I have a linux laptop if that would help me.Which new version? The official version is 1964 version 1.1 It is already on many sites as an EXE file, so we do not understand what you want to do. The creators of the program do not endorse any new changes, as far as we know about. Normally the program runs on Windows and is written in C. Compiling the program in Linux may produce unexpected results. I have not looked at the code, but I do believe it makes very specific library calls into Win32. Nevertheless, the Linux people claim to have a version that works. So before you try to compile, check it out. http://ubuntuforums.org/showthread.php?t=476031 Or Google best n64 emulator for linuxQuote from: revron on December 29, 2010, 04:38:04 PM I am trying to add the new version of 1964 to a emulation website, but the way the uploader is set up is the real problem. It only allows .exe programs to be upoaded. I have a linux laptop if that would help me. zip it up and convert the zip to a SFX?Quote from: barrybrother on January 20, 2011, 02:00:27 PM Enroll in a "C" programming course at your junior college. The college will furnish all computers and the "C" complier. He want's to compile an already written application. C Compilers are FREELY available and the program in QUESTION has a makefile that works with a variety of different compilers. |
|
2511. |
Solve : programming? |
Answer» Dear sir I heared that for this we have to start from c language.Is it correct?No. Not even close. Quote I know only word and excel to use.BC is right. If you know just MS Word and Excel, learn FULLY how to use them. Advanced features of both are called 'Application Programming.' This is the kind of programming most people need to learn for work, home and school.some people just learn excel or word religiously. Which means, they are real experts at them and can do all the fancy things that average joes don't really need or probably won't ever notice unless he's told Many programming/software language exist. C is only one of many and C is only one of many starting choices. the question of "what language is the best to learn first" is rather ridiculous. Nobody asks "What language should I teach my child", because they don't really "teach" the child the language as much as the child grasps the basics on their own with no guidance Just like how they don't have to be taught how to recognize a face. In the same vein, LEARNING Programming isn't so much about learning a single programming language as much as it is learning a set of concepts that apply and can be applied universally across almost all languages. It doesn't matter what language you "choose" first unless it happens to lack a lot of those concepts (such as for example Minimal BASIC). Computer Programming takes a certain mindset. Not EVERYBODY's Brain is wired in a way that makes it easy to understand for them. They can learn programming but it's a slow and generally painful process, and they generally are not as "driven" and not unexpectedly GET discouraged easier.How about a basic reference. http://www.csupomona.edu/~hnriley/www/VonN.html This should be required reading for anyone who wants to know more about computers.While It certainly doesn't hurt, you don't need to know how your instrument works to make music.Quote from: BC_Programmer on December 22, 2010, 02:53:10 PM While It certainly doesn't hurt, you don't need to know how your instrument works to make music.Is that what you got from it? OK I got "Do you even know what your instrument is?" Is the computer just what John von Neumann, said it would be? Or is it something else? Does it think? Could it? Sometime in the future we may not program our computers. We will talk ton them. Start working on articulation and modulation now, while your nae young. Quote from: Geek-9pm on December 22, 2010, 05:08:55 PM Sometime in the future we may not program our computers.Copyright 1970.Try to learn from w3schools.com !! its great ... Quote from: jhonas on January 20, 2011, 12:15:43 AM Try to learn from w3schools.com !! its great ... It is, but it does not learn you C programming, which is what the ORIGINAL poster wanted. |
|
2512. |
Solve : How to start C programming?? |
Answer» After using windows for to make batch files for a while, i decided to upgrade. I now have Ubuntu and am going to learn C programming. How do i start? do i need a program to write the SCRIPTS in, like eclipse for Java or what? How do i start?Open the terminal and type gcc to see if the compiler is installed. If so, you can proceed to write a program using a text editor and save it as program.c Then you can use gcc to compile it from the terminal. If not, you can install it from the package manager. Quote do i need a program to write the scripts in, like eclipse for Java or what?I am not very familier with what is the best IDE.kdevelop is a good IDE for C and C++, it supports other languages too I think. sudo apt-get install kdevelop at a terminal to install; or use the package manager. For STARTING c programing you should know about the c language keywords, header files, data types. First of all you should start simple program like print hello. #include < stdio.h> void main() { printf("\nHello World\n"); } Programming in C is almost programming in assembly. Learn C++. It is a 'middle' language.It nis much easier to get started. Unless you are the academic type, I would not recommend SPENDING much time learning C or other low-level-languages. Have you studied any high-level languages? If not, why not? Most work being done today is top-down development.Quote from: Geek-9pm on December 20, 2010, 11:31:54 AM Programming in C is almost programming in assembly. um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus" Quote from: BC_Programmer on December 20, 2010, 12:19:25 PM um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus"Yes, I failed arithmetic. And later I failed Algebra. Set me back so I did not get to take calculus. Should have skipped arithmetic.Actually, I would say that C and C++ are agreeably close in difficulty to learn. But, for beginners - C is essentially easier to dive in to than C++. As for experienced learners in the programming field, C++ should not be too aggressive. ~DMJ If you are on windows, Microsoft Visual C++ Express Edition is good compiler. C++ includes the stuff you can do in C. Anyway, cplusplus.com has a great tutorial so you may want to start here! I agree. cplusplus.com is pretty good. I am on a couple of other sites that I learned on.Quote from: 2x3i5x on December 22, 2010, 12:27:55 PM C++ includes the stuff ... cplusplus.com has a great tutorial so you may want to start here!Way to go! Greet link! And it is FREE!I'm new here but I wanted to give my 0.02 worth... It's generally accepted wisdom that C and C++ are close enough that you may as well start with C++. The major difference is the object model and it's better to get started with objects sooner than later. I like GEANY for C/C++. It runs on Win and *Nix and it can run C/C++ directly (as long as you have a compiler available).I recommend w3schoos.com is ALSO good !!Quote from: jhonas on January 20, 2011, 12:14:42 AM I recommend w3schoos.com is also good !! you are recommending a non-functional website |
|
2513. |
Solve : c++ pipe() questions? |
Answer» I WANT write a program that forks a copy of itself. The PARENT should ask the user for an integer. The PARENT should SEND that integer through a pipe to the CHILD. The CHILD should do something with it and send it back through a pipe to the parent. The PARENT should print out the integer. |
|
2514. |
Solve : C++ problem? |
Answer» i made a program to GET the factors for a NUMBER but i get weird answers back such as Quote 20 has these factors 3999008,3999008,0,0,0,0for an input of 20. the code is as followsCode: [Select]#include <cstdlib> #include <iostream> using namespace std; void show( int *arr ,int num ); int main(int ARGC, char *argv[]) { int num=0; int numfactor=0; int numarry=0; char error[20]; cout << "what number do you want to factor: "; while (!(cin >> num)) { cout <<"try again"; cin >> error; } for (int i=1;i<=num;i++) if (!(num % i)) numfactor++; int * factor =new int [numfactor]; for (int i=1;i<=num;i++) if (!(num % i)) { cout <<i<<"\n"; factor[numarry]; numarry++; } cout <<num << " has these factors "; show(factor,numfactor); cout <<"\n"; system("PAUSE"); return EXIT_SUCCESS; } void show (int arr[] ,int x) { cout <<arr[0]; for (int i=1;i < x;i++) cout <<","<<arr[i]; }try using longin what variablemy bad, thought you were doing factorials...(but still better to use long in case you want to find factors of very big numbers) you are using c++ and std namespace, so use endl instead of "\n". also you did not assign values to your factors array Code: [Select]using namespace std; void show( int *arr ,int num ); int main(int argc, char *argv[]) { int num=0; int numfactor=0; int numarry=0; char error[20]; cout << "what number do you want to factor: "; while (!(cin >> num)) { cout <<"try again"; cin >> error; } for (int i=1;i<=num;i++){ if (!(num % i)) numfactor++; } int * factor =new int [numfactor]; for (int i=1;i<=num;i++) if (!(num % i)) { cout <<i<<endl; factor[numarry]=i; numarry++; } cout <<num << " has these factors "; show(factor,numfactor); cout <<endl"; return 0; } void show (int arr[] ,int x) { cout <<arr[0]; for (int i=1;i < x;i++) cout <<","<<arr[i]; } thank you THOUGH i have have two questions 1) why should i use endl instead of /n 2)is this the most efficient method of getting factorsyou can see some discussion here and hereQuote from: mat123 on January 06, 2011, 12:08:30 AM 1) why should i use endl instead of /n"\n" is literal, and while compilers will generally condense all the instances of a single literal into one, you shouldn't assume anything as far as the compiler goes. endl is a constant, already defined specifically for you to use with iostream. Quote 2)is this the most efficient method of getting factors No. your iterating from 1 to the number, by one every time. first- one will be a factor of any whole number, 2, there is no need to go past the original number divided by 2, since no number B that is larger then Number A/2 will be a factor of A. Also, consider the numbers 2,3,5,7 and 9. if 2 is not a factor, then you KNOW that no multiple of 2 (4,6,8, etc) is a factor either. same with 3 and it's multiples. And that is just for starters. OK thank you for your help |
|
2515. |
Solve : PERL - Is there a better way to write output to file than my batch/perl method? |
Answer» I am curious as to if there is a better way to write an output to a file using PERL than the method that I am using below, which is a mixture of PERL and DOS(batch): Yes, it would be better to read and write files inside of pearl.its Perl.Perl was originally named "Pearl," after the Parable of the Pearl from the Gospel . But I guess you are to young to know that.Quote from: Geek-9pm on December 29, 2010, 10:43:07 PM Perl was originally named "Pearl," after the Parable of the Pearl from the Gospel .Wrong. Being "named" and being "OFFICIALLY used" are two different things. Before Perl, there's also a PEARL language (since 1977). after that, Larry changed the spelling to Perl. Get that in your head.Quote from: ghostdog74 on December 29, 2010, 11:03:30 PM Wrong. Being "named" and being "officially used" are two different things. Before Perl, there's also a PEARL language (since 1977). after that, Larry changed the spelling to Perl. Get that in your head.You are right. He wanted 'Pearl' but changed it to 'Perl' before the official release. Thanks everyone for the useful info...plus also about the Perl name history =) never knew PERL has been around since 1977. To just think I might have been able to play with PERL on my TRS-80 way way back..lolSorry for the confusion I started... Quote A pearl is a round shiny object produced by mollusks and used in jewelry.A Pearl by any other name would be a Rosa.Quote from: DaveLembke on January 01, 2011, 03:11:10 PM Thanks everyone for the useful info...plus also about the Perl name history =) never knew PERL has been around since 1977. To just think I might have been able to play with PERL on my TRS-80 way way back..lol There was no Perl in 1977...Pearl is very young, and has a problem... http://www.funnyordie.com/videos/74/the-landlord-from-will-ferrell-and-adam-ghost-panther-mckayWell 1987 I guess vs 1977..lol...thx for posting correction |
|