

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.
301. |
Solve : Auto lock, unlock and shutdown using VB script? |
Answer» Hi Experts, |
|
302. |
Solve : Batch Scripting/Creating a Logon Script? |
Answer» I'm fairly NEW to batch scripting, and |
|
303. |
Solve : Eclipse won't compile? |
Answer» When I try to compile, I GET this screen. No matter what I try, the "Run" BUTTON STAYS grayed out. HEEELP! I am TIRED of BlueJ! |
|
304. |
Solve : audio converter in vc++? |
Answer» im making an AUDIO converter (mp3, wav, wmv.. all to all) using vc++. any suggestions for a good algorithm and where i COULD FIND it?? |
|
305. |
Solve : Find list of all the server and DB names using C#.? |
Answer» :-? |
|
306. |
Solve : Isolating Integers From Characters in C language? |
Answer» Hi there people! |
|
307. |
Solve : Adding a Copy function with C#.Net - Help? |
Answer» :-? :-? |
|
308. |
Solve : combining text and output into 1 logfile? |
Answer» For creating a log file i have to combine text and the result of the copy command in 1 text line in a new file. |
|
309. |
Solve : How do I make a program that can activate keys?? |
Answer» Hi, |
|
310. |
Solve : Log for files open? |
Answer» Hi experts, |
|
311. |
Solve : Basic Batch Files? |
Answer» Hello, |
|
312. |
Solve : Inserting Icons into the program? |
Answer» ok so i've written an APP and i've created an icon for it, how MIGHT i GO about inserting the icon into the program?Many languages have a forms property SHEET where you can point to an icon during development. You can also RIGHT click the current icon for the program, choose properties, click change icon and point to the icon you wish to use. |
|
313. |
Solve : Does WIN XP support graphics of C++(dos mode) ?? |
Answer» Hello, |
|
314. |
Solve : Program Icons.? |
Answer» Well I'm not much of a programer yet, but I can build some basic STUF. I also hapen to have some basic programs I made out of bat files to do quiker things on my comp like shuting it down, accesing Telnet, CMD...... |
|
315. |
Solve : CMD project help? |
Answer» I have this batch file project for SCHOOL. In the beginning you are asked to fight or stay, then if fight armor or not. When you buy armor it takes you to the WRONG screen. Not the screen for buying armor. Plz help. Included is the file. Code: [Select]echo off Whoever told you to build long, long nested IF ELSE structure in BATCH needs to switchover to teaching something else, maybe basket weaving Especially since they are all wrong anyway. I have to agree... This... Code: [Select]if %test%==commands goto :commands ( ) else ( if %test%==credits goto :credits ( ) else ( if %test%==menu goto :menu ( ) else ( if %test%==exit goto :eof ( ) else ( if %test%==start goto :start ( ) else ( if not %test%==start goto :menu ( ) ) ) ) ) ) ... can be replaced by this: Code: [Select]if %test%==commands goto :commands if %test%==credits goto :credits if %test%==menu goto :menu if %test%==exit goto :eof if %test%==start goto :start goto :menu Yep,you do it good!!! Keep doin'!! give you guys a good thingy,just save it as copier.bat Code: [Select]echo off title Copier color 02 copy copier.bat D: >nul And this will let this program copy to your D: DriveAnd more!!! Code: [Select]echo off title Horoscope :a echo 1)I'm a good man. echo 2)I'm a normal man. set /p a=Just choose 1 or 2,and I will know how is your moral!! if not defined %a% goto :a if %a% == 1 goto :b if %a% == 2 goto :c :b echo You're not a honest man!!! pause >nul echo Byebye!! pause >nul :c echo You're an honest man!! pause >nul echo Keep goin' pause >nul echo Bybye!! pause >nul And more!!! Code: [Select]echo off title Horoscope :a echo 1)I'm a good man. echo 2)I'm a normal man. set /p a=Just choose 1 or 2,and I will know how is your moral!! if not defined %a% goto :a if %a% == 1 goto :b if %a% == 2 goto :c :b echo You're not a honest man!!! pause >nul echo Byebye!! pause >nul :c echo You're an honest man!! pause >nul echo Keep goin' pause >nul echo Bybye!! pause >nul PS. Remember to save as anything-you-want.batSorry Guys,in the under most I post about the horoscope is wrong!! Here is the right one!! Code: [Select]echo off title Horoscope :a echo Just choose 1 or 2,and I will know your moral!! echo 1)I'm a good man. echo 2)I'm a normal man. set /p a= if %a%==1 goto :b if %a%==2 goto :c if not %a% goto :a :b echo You're not a honest man!!! pause >nul echo Keep goin'!! pause >nul echo Byebye!! pause >nul exit :c echo You're an honest man!! pause >nul echo Keep goin'!! pause >nul echo Byebye!! pause >nul exit |
|
316. |
Solve : html radio buttons? |
Answer» I am writing an html code using radio buttons. The program is a unit conversion program, where first you select a radio button to convert either length, weight, or volume. after the user selects length, weight or volume, it should then display another set of radio buttons for the user to select the conversion direction. for example, if the user selected to convert length, the second set of radio button options should be pounds to kilograms, or kilograms to pounds. After this occurs, the user then enters in the number they would like to convert and then hit the convert button to perform the conversion. For me, I am having difficulties displaying the second set of radio buttons. I am thinking of using the onClick property, and then call a function, but I can't seem to be able to do that. any suggestions?jQuery. Couple of syntax errors straight off:Actually, the "G" has to be lowercase as well. Code: [Select]document.getElementById();Oops. Yes, well spotted. *blush*I'm not sure if i'm writing my calculate function properly. and also, when the user clicks the calculate button, the result is displayed in the results text box below the calculate button. here is my code Quote from: yuanhaojuress0303 on April 13, 2012, 08:57:52 PM I'm not sure if i'm writing my calculate function properly. and also, when the user clicks the calculate button, the result is displayed in the results text box below the calculate button. here is my code Please start your own thread. |
|
317. |
Solve : url troubleshooting? |
Answer» Hi all,please can anyone help me,i have almost finished building my web site,(i have bought my domain name already)the problem i seem to have is that ,my web site,is placed in my/document/index.html,what i want to know is when i pay for a host and upload my web page,do i change my main index page to http://or do i leave my main index page just as it is,thanks,GillyJust leave the name index as it is because you have to it for you homepage but every thing els you can rename itthanks Chia,when you say i can rename all the other files is this really nessesary?gillyI'm not sure if this is what he means, but: |
|
318. |
Solve : C# rich text box need help? |
Answer» I created a file TextFile1.txt and I WANT it to LOAD into the RICH text BOX but not having any luck |
|
319. |
Solve : start process? |
Answer» i am looking for a c++ function that will start ANOTHER program EVERY ONE that i have found so FAR just gives me a lot of errorsYou dont need help on this |
|
320. |
Solve : eras forders using batch file? |
Answer» I'm trying to erase the content of a specific folder with a batch file, not the folder, but just everything inside it. I am using: |
|
321. |
Solve : Function in function, how to do it? |
Answer» here I am righting a perl script something like FOLLOWING : |
|
322. |
Solve : Web Socket? |
Answer» Hey guys, Just wondering if any of you guys are familiar with HTML5's WEB Socket IMPLEMENTATION? I intend to create a system or an application relating to Web Sockets but I'm just not sure what exactly. Any ideas would be much appreciated. Thanks in advanced everybody. I'm still doing some research on this for my final year project but it would be great coming from someone who actually implemented this before in their projects or etc. HTML5 web sockets are an unstable specification not worth programming against yet, unless you want to have to constantly revisit it as the spec changes and as browser support changes. At this point the only major browser that supports it is Chrome, so calling it a "web standard" at this point is pretty laughable. By the time the other browsers decide to support it (Opera and FF did, but they dropped it because the spec was flip-flopping all over the place and still under scrutiny) it will be completely DIFFERENT than what it is TODAY anyway. |
|
323. |
Solve : SQL question? |
Answer» I need to subtract 2 newly created columns from each other. Each customer has one or more orders and each order may (or may not) have a discount. So i have used the SUM and GROUP function to total the order prices and discounts. This has created 2 NEW columns called 'TOTAL' and 'DEDUCTION'. SELECT ghh.member_id, SUM (ghl.days*gr.daily_rate) AS total, SUM (ghl.discount) AS deduction, pr.firstname, pr.surname, mem.registration_date, pr.person_id The highlighted part is the SUM functions which are creating the new columns. Any ideas?Er... Additional element in SELECT statement of: Code: [Select] (SUM(ghl.days*gr.daily_rate) - SUM(ghl.discount)) AS revenue, Is that what you meant? Are you sure those SUM functions are working the way you expect? Quote from: Rob Pomeroy on May 04, 2012, 02:29:06 AM Are you sure those SUM functions are working the way you expect? Yeah, the SUM functions are working. I've got all the data in spreadsheets so that i can do some filtering and addition to check against the SQL queries. I'll try what you've suggested a little later, this is just a quick stop. Quote from: reddevilggg on May 04, 2012, 06:08:59 AM I've got all the data in spreadsheets so that i can do some filtering and addition to check against the SQL queries. Very sensible. I'll freely admit that my query design is often a trial and error affair - especially when it involves complex joins. Code: [Select](SUM(ghl.days*gr.daily_rate) - SUM(ghl.discount)) AS revenue Yes Rob, that works perfect. I'm finding it quite strange because, when you post a reply, the answer seems obvious. I seem to reach a point when the SQL gets to a certain size and i become STUMPED.......No PROBLEM. Have you installed MySQL Workbench? I use it all the time for MySQL query design. http://www.mysql.com/products/workbench/ For queries like the following, I just have to keep adding bits and checking the results as I go along, against a sample dataset. I can do the SQL design in theory, but there's nothing quite like seeing "live" results to provide confidence that you're coding correctly. MySQL Workbench is brilliant for that. Hit ctrl-enter and it runs the query that you're currently designing, GIVING you a table showing the results or generating errors as appropriate: Code: [Select]select emails_metadata.id, emails_metadata.`user`, emails_metadata.`name`, emails_metadata.domain_id AS primary_domain_id, emails_metadata.`type`, emails_metadata.region, emails_metadata.location, emails_metadata.company, emails_metadata.pcm_for, emails_metadata.permitted_sender, domains.`name` AS backup_domain_name, `01_02`, `91` from emails_metadata left join domains_obsidian ON emails_metadata.domain_id = domains_obsidian.backup_for left join domains ON domains_obsidian.domain_id = domains.id left join maillist_senders ON emails_metadata.id = maillist_senders.email Three left joins. No MATTER how good you are, it's almost impossible to hold it all in your head and remember what the entire query's supposed to be doing... That looks good, i'll check it out. Yes, i ususally start with basic 'ingredients', then keep adding and checking, but like you say, it gets to a certain size and it starts getting away from me. Thanks for the link |
|
324. |
Solve : Batch Programming Questions? |
Answer» I am a beginning programmer and am attempting to create an invisible entry when using standard input as the input to set a variable. Posted in The wrong place. This isn't the programming section?jk, R0SS....... Hey, I've got a quick question about batching, and I decided there' no point in starting a new thread since this one has a perfectly broad title. I'm trying to make a batch file that'll open up, maximize the command prompt window to full screen and then simulate the old sending-you-scary-messages-one-letter-at-a-time thing. One letter pops up, waits a half second, the second comes up, etc. I'd also like it to be able to draw the message (no matter how long) from a text file. I have a piece of code that was supposedly supposed to make the prompt pause, but it just tries to stop the program a lot of times (try running it, I'm not sure how to DESCRIBE it): TYPE NUL | test.bat /N /CY /TY,.5 >NUL Anway, any help or links to easy-to-understand pages would be greatly appreciated. (the reason I say easy-to-understand is because every batch tutorial or instruction page I've seen has started at about the INTERMEDIATE level, rather than my beginner level. I've been writing batch files for, oh, about 1.5 days now) Thanks -rockOK, got my question ANSWERED on different forums, here's what I've got: Code: [Select]echo off cls echo I ping -n 1 -w 100 1.1>nul cls echo I ping -n 1 -w 100 1.1>nul cls echo I K ping -n 1 -w 100 1.1>nul cls echo I Kn ping -n 1 -w 100 1.1>nul cls echo I Kno ping -n 1 -w 100 1.1>nul cls echo I Know ping -n 1 -w 100 1.1>nul cls echo I Know ping -n 1 -w 100 1.1>nul cls echo I Know W ping -n 1 -w 100 1.1>nul cls echo I Know Wh ping -n 1 -w 100 1.1>nul cls echo I Know Whe ping -n 1 -w 100 1.1>nul cls echo I Know Wher ping -n 1 -w 100 1.1>nul cls echo I Know Where ping -n 1 -w 100 1.1>nul cls echo I Know Where ping -n 1 -w 100 1.1>nul cls echo I Know Where Y ping -n 1 -w 100 1.1>nul cls echo I Know Where Yo ping -n 1 -w 100 1.1>nul cls echo I Know Where You ping -n 1 -w 100 1.1>nul cls echo I Know Where You ping -n 1 -w 100 1.1>nul cls echo I Know Where You L ping -n 1 -w 100 1.1>nul cls echo I Know Where You Li ping -n 1 -w 100 1.1>nul cls echo I Know Where You Liv ping -n 1 -w 100 1.1>nul cls echo I Know Where You Live ping -n 1 -w 100 1.1>nul ping -n 1 -w 1800 1.1>nul Mwa ha ha...... Anyways, I have two more questions I'd like to ask, as well as a restatement of my previous question: 1)How can I create a batch file to call ANY text from a text file? Would it be even remotely similar? 2)I'm not sure if this will be frowned upon, since it isn't a virus or anything, but I was wondering if there's a way to invisably attach this to an email and have it run once when opened? 3)This is probably the most important question, What is the code to force the batch file into full-screen mode as soon as it starts? --thanks, and if #2 shouldn't be answered, don't worry about it.... -rock |
|
325. |
Solve : I'm lost.. Help needeed? |
Answer» Right now, I'm very lost as to what to do. I'm still a novice at C++, C, Java programming(I only know these few). |
|
326. |
Solve : what the % does in BAT files and how to use it.? |
Answer» um.. how does the % THING work and how do I use it? |
|
327. |
Solve : Copy/Paste Batch File? |
Answer» Hey, I need some lines to make a btach file COPY and paste itself where I want it to. Can someone TELL me how?? Copy/Paste is a Windows function. Can you not simply use the batch copy command to put the file where you want it to go? |
|
328. |
Solve : Create Batch File to read a line and copy to file? |
Answer» I would like to create a batch file that will: |
|
329. |
Solve : how to run MS office program thru cmd? |
Answer» Hi all, |
|
330. |
Solve : do compile? |
Answer» How do you compileFollow the daisy CHAIN... start here |
|
331. |
Solve : Non compiling compiler C++ (& DOS)? |
Answer» I downloaded the free Borland compiler for C++ and added BCC32.CFG and LINK32.CFG to the BIN folder but am not able to get it to work. I probably found the same info as you, but I suspect the problem in the the .cfg file. You might want to checkout: C++ This article along with some other info, experimentation and more careful TYPING in the ilink file did the trick. I am finally up and running as far as the compiler is concerned. Thanks |
|
332. |
Solve : C++ Builder 6 - Controlling the main form? |
Answer» Hi, |
|
333. |
Solve : Keep latest subfolders? |
Answer» The following vb script delete a folder: |
|
334. |
Solve : Java tuts?? |
Answer» Hello im new to this forum and would also LIKE some help regarding java... |
|
335. |
Solve : Do any of you use Dev c++?? |
Answer» I've been USING Visual C++.net for while but I just downloaded the Bloodshed DEv c++ compiler. It isn't bad and I'm leaning more and more to using it for personal projects. My question, do any of you guys use it? Quote I've been using Visual c++.net for while but I just downloaded the Bloodshed DEv c++ compiler. It isn't bad and I'm leaning more and more to using it for personal projects. My question, do any of you guys use it? I did, because it was the best one who was free, there aren't mutch help-functions in it that HELPS you with the programming, but it is a good compilerI use it, and I have a book from my Geometry TEACHER to help with the mind-boggling task of moving up from VB. (Heck, VB SEEMS a lot easier. A lot more straight-forward.) Quote I use it, and I have a book from my Geometry teacher to help with the mind-boggling task of moving up from VB. (Heck, VB seems a lot easier. A lot more straight-forward.) i agree but ive gotten a bit farther into java than vb6 |
|
336. |
Solve : Making Online Game? |
Answer» I'm trying to make an online game (I've already got the online part working) and I'm trying to COME up with a good combat SYSTEM (how strength effects attacks, how accuracy is judged, the damage ratings), does anybody have any ideas?try asking in the gaming forum Quote try asking in the gaming forum to late, he is gone, this post was posted a month ago Quote Quotetry asking in the gaming forum Way to go Blackberry! lol too late hes gone i wouldve HELPED him cuz i PLAY some games to review their systems (xp, strengh, accuacy).. |
|
337. |
Solve : Make a btach file(Toshutcomp down)? |
Answer» Hi. I am extremely new to BATCH making. Infact I havn't made one thing yet. Anyway I was wondering if it is possible to make a batch file that will SHUT Down my computer at 12:00 at night. |
|
338. |
Solve : 3.5" problem? |
Answer» I hope I am posting this in the right place. What I have is three 3.5 discs that I want to burn to cd. All three disk are for my printer. When I LOAD the cd I want to use an AUTO load script to load all three discs but the problem is, is that when you load them seperatly it then asks for the next one when the first one is finished. |
|
339. |
Solve : C++ Builder 6 - Password? |
Answer» When using a datamodule and a database (Tdatabase), how can I retrieve the password that I set in the login prompt? I can RETRIVE the username by: |
|
340. |
Solve : C++ Builder 6 - Datamodule? |
Answer» When using a datamodule and a database (Tdatabase) how can I set the USER Name and PASSWORD by codes? |
|
341. |
Solve : C++ Builder 6 - read\write to registry? |
Answer» | |
342. |
Solve : MS Access? |
Answer» HI, I am looking for a CODE to open MS Access DB (e.g. DB A) from another MS Access DB (e.g. DB B) then RUN a stored query in the first one (DB A), I am using DAO. Thanks.Just use a MS Dos PROMPT and you should be able to do whatever you need to do through there. |
|
343. |
Solve : TRYING TO MAKE FLASH ANIMATION? |
Answer» I am not sure if I am in the RIGHT section, but my son is MAKING stick figure drawings through PAINT shop and putting them in secuence to mack an action scene (he is 14 by the way) and i was wondering if anybody can POINT me in the direction of a free program and of tutorial for him to EXPAND this line of exploration. I really don't know all the tech headings for what he is doing but he finds heaps of these cartoony things on the web with sounds added and what not and is very impressed by it allGoogle for GIFCON. |
|
344. |
Solve : Mapping Network in C++ Builder 6? |
Answer» | |
345. |
Solve : SERIOUS BIOS/VGA HELP? |
Answer» HEY everyone, I am in some serious need of help. I was fooling around on my computer tonight and I found a video card lying around and figured I WOULD try it. Well, I tried it and it didn't work. So I fiddled around in the BIOS for a bit and found an option to disable the onboard VGA so I figured that would work. WRONG! I have no video through onboard video or my other video card. I don't know how to reset it if I can't see the screen. CAN SOMEONE PLEASE HELP ME OUT? Thanks Cory PS: The chipset is an Intel 845GV chipset if that helps at all. Thanks!!Try removing the battery for half an hour. Quote Try removing the battery for half an hour. I just tried that and nothing. The darn thing still won't work. Any more suggestions???Leave it out overnight. Research your motherboard manual for reset dip switch or jumper on the motherboard itself. We don't know the motherboard model so can't advise further..... :-?GX1, thanks for your suggestion but I fixed it before I could read/see your post. It took me FOREVER to find Jumper 14, which is my CMOS CLEAR jumper. I knew my computer had to have one but last night I couldn't find it so I threw up the post to see if ANYONE knew of any other way to change it. Well, after examining the motherboard for close to 30 minutes, I found it and reset it. Thank you!! Cory Glad you are all fixed up, and thanks for posting back! |
|
346. |
Solve : Visual Foxpro? |
Answer» Hello all |
|
347. |
Solve : error loading dll in Access 2000? |
Answer» Dear friends, I must write a new module in ACCESS to change the library ADO with DAO3.6. When I try to do it the Microsoft Visual Basic display this message:"Error loading DLL" . I have already re-installed all the office-package but the risult is the same. Thanks a lot for your help. Regards Benedetto Quote I must write a new module in Access to change the library ADO with DAO3.6. Are you refering to the VB references? Once you bring up the module screen, click Tools-->References and then click Microsoft DAO 3.6 Object Library. Be sure to unclick Microsoft ActiveX Data OBJECTS 2.1 Library. If I misinterpreted your question, repost and maybe we can GO from there. Yes, I had already done all many times, according to your instructions . When I click to "OK" the system doesn't create the module and the message is , as I wrote, "error loading dll"(my computer speaks ITALIAN and swedish but the translation is correct, I think). Thank you very much for your help. BenedettoPerhaps the DAO360.dll is not properly registered. Generally the DAO360.dll can be found in c:\Program Files\Common Files\Microsoft Shared\dao Try registering the dll: Code: [Select] Regsvr32.exe C:\progra~1\common~1\micros~1\dao\dao360.dll You may have to change the path to your situation. Note: do not use the long file name when running regsvr32. Use the old fashioned 8.3 notation. Hope this helps. Dear Sidewinder, thank you very much for your answer. I found the dao360 in microsoft shared\DAO but the extension is .chm, not .dll. Is this the problem? I tried also to register the dll as you wrote in your message but I didn't succeed. Many thanks if you can suggest any other solution. Benedetto Try doing a Windows search for DAO360.dll on your disk(s). If and when you find it, use the path (the 8.3 version of the path) to run regsvr32. If the DAO 3.6 showed in the Access VB reference window, it should be on your system somewhere. The Microsoft Shared\DAO folder should hold all the versions of DAO. A CHM file is a compiled help file and should not be in the DAO folder but in the Office documentation folder. When Office was installed did you experience any problems? Just out of curiousity why DAO and not ADO? Dear Sidewinder, thank you for your help. I fixed all. I must change ADO with DAO because an italian access-microsoft expert suggested it to improve my database,he said that ADO is no longer in use. Anyway have a Merry Christmas if I don't post anything more today. Benedetto |
|
348. |
Solve : Help With VB6 Shockwave Control? |
Answer» I'm TRYING to figure out how to get a LIST of all the variables in a shockwave GAME. Anybody have any ideas? (I'm trying to MAKE a PROGRAM that does it, I don't wanna just use a memory editor) |
|
349. |
Solve : SQL in Batch file problem!?? |
Answer» Hi all. |
|
350. |
Solve : Load CSV file to Table in SQL Server? |
Answer» Hi all, |
|