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.
| 1001. |
Solve : INFORMIX AND INGRESS DATABASES: PLEASE I NEED HELP WITH THIS!!!!!!!!!!!!? |
|
Answer» HELLO EVERYONE, CAN YOU SUGGEST A SITE WHERE I CAN LEARN ABOUT THEM.Actually, Google can help you a lot here: http://www.google.com/search?hl=en&q=informix+database&btnG=Search http://www.google.com/search?hl=en&q=ingres+database&btnG=Google+Search |
|
| 1002. |
Solve : Creating java program? |
|
Answer» I need HELP creating a java program that inputs an AMOUNT of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies. I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies. I didn't provide any code straight-up because this kind of looks LIKE homework.Quote looks like homework.I agree with BC_Programmer Quote I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.alyoob ! Do you think this program only need simple calculate and simple input and output?All of these can be found in Textbooks. I advise you to read your Textbooks throughout . |
|
| 1003. |
Solve : i see someone is asking my same question C++ PROGRAM DOWNLOAD? |
|
Answer» now i have lost steam and the air is thinned i am reading others posts installing the program c++ compiler is also my frustration You seem to be making life difficult for yourself. Did you read and understand the instructions? They're very clear. Start here then move on to the Readme file here. Make sure you understand the requirements before proceeding. There's even a zip-picker page at this site where you can select which zipped files to download and includes instructions on how to unzip/install the files. Also an Exe file is supplied to unzip the zipped files. Quote so i used notepad now what?The instructions are contained in the Readme.1st file. You save the source you created as filename.c then compile it. Here's a quote from Readme.1st: Quote Compilation There's a GCC invocation site here link. You will never EVER be able to create PROGRAMS unless you read and understand the instructions. If English is not your first language I suggest you have the Readme.1st file translated to your native tongue. Have fun... V.Quote from: RUBY02 on July 02, 2008, 07:07:56 AM
they don't take advanced Computer programming skills, but rather skills in computer operating skills. Quote from: RUBY02 on July 02, 2008, 07:07:56 AM
Because the makers of the compiler/IDE assume a base-level set of skills for the PEOPLE they design the program for. However, there are many Free IDE's for some of the languages. For example, Java is an easy one, you can find NetBeans IDE for that one- C++ has Watcom C++, but that's a tricky one to find... are you suggesting compilers? or something like notepad just to enter the program? if so how do you get it to work without a compiler? in therwards how to see the end product? i couldn't download the compiler(see posts) so i used notepad now what? what is an API? [/quote] |
|
| 1004. |
Solve : Excell Script/Problem? |
|
Answer» I would like to WRITE a SCRIPT that compares two columns CALL them A and B |
|
| 1005. |
Solve : THERES A HUNDRED GLITCHES TO GET WINSOWS NT TO WORK WITH DGJPP?? |
|
Answer» THIS IS WHY I PROBABLY HAVE NOT BEEN ABLE TO USE THIS COMPILER YEA OR NAY? |
|
| 1006. |
Solve : how to edit? |
|
Answer» guys,,is there any way to edit a software?.. i wan to edit this software Ygamer trivia.. its a bot trivia for yahoo chatroom and i want to add features like commands of !help.. any one who can help? Edit Software? I don't know what Ygamer Trivia is but is this legal?there(http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=70276&lngWid=1) is the source code of it.
|
|
| 1007. |
Solve : Visual Basic and Windows Installer Issue? |
|
Answer» Hi, the trouble starts when I run Visual BASIC 6. I have create a NEW user on my PC and I just want to run VB6 but APPEARS the WINDOWS Installer screen telling me that the Installation will start. I leave it until it finish but It doesn't never finish. Did you know what's wrong?
|
|
| 1008. |
Solve : Automated Backup of a folder to an FTP site? |
|
Answer» Hello; |
|
| 1009. |
Solve : VB 5 and VB 6 Compatibility!!!!? |
|
Answer» Hi everyone, I have a little clue: I wish to develop an application, (modify and update), but it's developed in MS Visual Basic 5. I'd never programmed in VB5. Could I modify without some kind of issue in VB6 the sourcecode written in VB5? Normally, when you open VB5 project in VB6 that project is automatically converted into VB6. Which SP do you mean SP5 or SP6? Of course, I REFER the VB6 Service PacksQuote from: friny on June 27, 2008, 02:05:04 AM Quote from: CBSk on June 26, 2008, 05:38:09 AMNormally, when you open VB5 project in VB6 that project is automatically converted into VB6. I can't speak for him as far as which SP he is using, but I've successfully converted projects from VB2-VB6 (no service pack) as WELL as SP6... VB5, I was only using the free "Control Creation EDITION", and I could successfully open my projects from either, since VB6 also labels it's projects with VERSION 5.0 as the first line. I'd suggest you simply copy the project and open it up in VB6, and see what happens. Shouldn't be a problem. @friny: The same as BC_Programmer speak. I had conversion done in both VB6 without any SP and VB6 with SP6. In my conversion I found some minor changes in source code for my project.Well, I'd test it and it works fine, with a bit of change. Thanks to all for your usefull help!! |
|
| 1010. |
Solve : using paralle or usb port to output in c++? |
|
Answer» I am tring to write strings and then DISPLAY them on the IC using the PARALLEL port. I have converted my name into a ASCI conde in hexadecimals the problem is I don't know what library is used for DISPLAYING into a seven segment displayer |
|
| 1011. |
Solve : Visual Basic 6.0 Subversion Plugin? |
|
Answer» Hello everyone, I'm seeking for a friendly subversion plug in for MS Visual BASIC 6.0 or Visual Studio 6.0. I've been found too many apps, but everyone WORKS only with the .Net environments. |
|
| 1012. |
Solve : Need help with creating a C++ Installer? |
|
Answer» Ok im new to this and ive read through some beginner books and i have a BASIC understanding of C++ and im trying to make a installer that will do simple tasks like downloading a file, extract it, and copy files to the specified directory. Is anyone willing to spare some time to help me with this? If so please send me a pm along with your msn. A source code of a installer already made would help too guys, thanks That actually SOUNDS like it would be more advanced. I suppose you could use system commands or the Windows API to make it alot easier, but there are lots of installers that use scripts to do what you want. I think Nullsoft makes a pretty good one if you just need an installer and not the learning experience.i noticed your having the same problem, i am getting the djgpp to work. |
|
| 1013. |
Solve : Create Batch file to dial broadband? |
|
Answer» Can anyone please HELP me by sharing the information of how to create a batch file to connect the BROADBAND CONNECTION automatically when I run the batch file. timing control is needed in the file.Broadband is always on. There is no need to DIAL in. |
|
| 1014. |
Solve : need script (*.cvs file items export to other files) [solved]? |
|
Answer» Hi there, More questions than answers for now. Are these HTML templated files being created from scratch, or do they exist and you want to insert records? Do all the records in the csv file have have same number of data fields? How many?Not as elegant as I hoped, but serviceable: Code: [Select]Const ForReading = 1 Const ForWriting = 2 Set fso = CreateObject("Scripting.FileSystemObject") Set fs = fso.OpenTextFile("c:\temp\data.csv", ForReading) 'user change Set fldr = fso.GetFolder("c:\temp") 'user change Set fc = fldr.Files For Each fi In fc If fso.GetExtensionName(fi) = "html" Then Set f = fso.OpenTextFile(fi, ForReading) strContent = f.ReadAll f.Close Set f = fso.OpenTextFile(fi, ForWriting) strData = fs.ReadLine arrData = Split(strData, ",") loc = InStr(1, strContent, "Best Regards,") loc = InStr(loc, strContent, vbCrLf) f.WriteLine Mid(strContent, 1, loc) For n = 0 To UBound(arrData) If n = 0 Then f.WriteLine arrData(n) & " " & arrData(n+1) n = 1 Else f.WriteLine arrData(n) End if Next f.WriteLine Mid(strContent, loc + 2) f.Close End if Next fs.Close I flagged the lines where you need to make changes for your environment. Made some assumptions: The templates are in a single directory with a html extension and missing data in the CSV file creates a blank line in the template. This could have been done directly from the spreadsheet, but since you went to the effort of creating a CSV file, I used it. The script overwrites the original template files. Can be modified to create a new output file. Save script with a vbs extension and run from the command line as cscript scriptname.vbs There is a shameful line of code where the array index inside a loop is tampered with. Keep this to yourself. If it gets out I may be banned from Don's Bar & Grill. Big thanks helping me, but script don`t work When I run the script I get this: Code: [Select]C:\temp\run.vbs(13, 3) Microsoft VBScript runtime error: Input past end of fileDid you test it or maybe I`m doing something wrong though I did as you said hmm...Quote Did you test it Yes, it was tested. All posted snippets are tested unless otherwise indicated. I cannot duplicate the error. Quote C:\temp\run.vbs(13, 3) Microsoft VBScript runtime error: Input past end of file Error can be caused by a file being open in another process or the file is empty. Judging from the location in the code, most likely a template file. The solution was based on each template file containing: Quote <html> Post the code you are ACTUALLY using. You'd be surprised at how much gets lost in translation. Yes. You was right. My template html file was empty. (my mistake) Now script works. In fact I`ve just realized that I need some changes to VB script, because my real html template file should look like this: Code: [Select]<html> ... Best Regards, <b>"name surname from csv file"</b><br /> "position from csv file"<br /> phone:+777 "number from csv file"<br /> mobile:+777 "number from csv file"<br /> fax:+777 "number from csv file"<br /> ... </html> As you can see name and surname for example should go exactly between tags, etc. Is it possible? Can you help me with it? And of course in the very perfect and comfortable way there is only one html template and before changes to it script creates the copy of it, then changes 1st one taking info from csv file line 1, then again creates 3rd copy from the 2nd, than again script changes 2nd one taking info from csv file line 2 and so on... And each TIME html file is named by Name Surname values which it contains. Of course there is no problem for me to copy many templates as I need and numerate them Quote In fact I`ve just realized that I need some changes to VB script, because my real html template file should look like this: In the future, take a deep breath, think about what you need and then post your request. Posting code on the installment plan is not very efficient. Code: [Select]Const ForReading = 1 Const ForWriting = 2 Set fso = CreateObject("Scripting.FileSystemObject") Set fs = fso.OpenTextFile("c:\temp\data.csv", ForReading) Set f = fso.OpenTextFile("c:\temp\template.html", ForReading) strContent = f.ReadAll loc = InStr(1, strContent, "Best Regards,") loc = InStr(loc, strContent, vbCrLf) f.Close Do Until fs.AtEndOfStream strData = fs.ReadLine arrData = Split(strData, ",") Set fo = fso.OpenTextFile("c:\temp\" & arrData(0) & " " & arrData(1) & ".html", ForWriting, True) ' user change fo.WriteLine Mid(strContent, 1, loc) For n = 0 To UBound(arrData) Select Case n Case 0 fo.WriteLine "<br>" & arrData(n) & " " & arrData(n+1) & "</b><br />" n = 1 Case 2 fo.WriteLine arrdata(n) & "<br />" Case 3 fo.WriteLine "phone:+777 " & arrdata(n) & "<br />" Case 4 fo.WriteLine "mobile:+777 " & arrdata(n) & "<br />" Case 5 fo.WriteLine "fax:+777 " & arrData(n) & "<br />" Case Else fo.WriteLine arrData(n) End Select Next fo.WriteLine Mid(strContent, loc + 2) fo.Close Loop fs.Close Made some assumptions: 1. Template file is labeled template.html 2. CSV file is labeled data.csv 3. New templates are labeled firstname lastname taken from the CSV file 4. Uses a single template file (format in earlier post) as the basis of the new templates You can change any of these values. Missing data in the CSV file produces a template line with the literal only. Run as instructed in an earlier post. Good luck. Quote In the future, take a deep breath, think about what you need and then post your request I will. Thank you very very much. You really helped me. The script is perfect - exactly what I was looking for. |
|
| 1015. |
Solve : Diferences between vbp and mak Files!!!!? |
|
Answer» Hi, I've been found in a project the extensions .vbp and .mak, to define the VB6 PROJECTS files, but I don't know which is the difference between it and which kind of TROUBLE COULD I get replacing all to .vbp. .mak is the old project extension for Visual Basic 1,2 and 3. VBP is from version 4 onwards. when you open a .MAK in a newer version of VB and save it, it still saves as a MAK. Thanks for your usefull help!!! Regards |
|
| 1016. |
Solve : Instruction Dim in Visual Basic 6!!!? |
|
Answer» Hello everybody, I have a little clue about the attributes used in the instruction Dim. I would like to know what kind of function have the attribs As Form. The answer is "a form". I know it, but I need to get an explanation about its uses!!!!are you asking what purpose it would have to Dimension a variable of type Form?Quote from: BC_Programmer on July 04, 2008, 10:10:12 PM are you asking what purpose it would have to Dimension a variable of type Form? YES I do.Quote from: friny on July 07, 2008, 02:56:58 AM Quote from: BC_Programmer on July 04, 2008, 10:10:12 PMare you asking what purpose it would have to Dimension a variable of type Form? The idea is to PROVIDE something called polymorphism, say for example you have to following procedure: Code: [Select]Private Function ShowAndSize() Form1.Show Form1.Move (Screen.Width/2)-(Form1.Width/2),(Screen.Height/2)-(Form1.Height/2) End Function This works (shows the form and centers it on the screen, but you'll need to create a new function for any other form. Instead, we could do this: Code: [Select]Private Function ShowAndSize(FormSize As Form) FormSize.Show FormSize.Move (Screen.Width/2)-(FormSize.Width/2),(Screen.Height/2)-(FormSize.Height/2) End Function and then call it by passing the form as a parameter. Of course, that isn't really declaring a variable of type form- one POSSIBLE usage for such a thing would be for a form that is designed to work with another form, the "CHILD" form could keep a private variable of Type form that can be changed to determine the parent form. |
|
| 1017. |
Solve : Telnet automation? |
|
Answer» I NEED to WRITE a C program to telnet into a device, and read INFORMATION from the device. |
|
| 1018. |
Solve : Basics for php and asp .net? |
|
Answer» can ne one provide me some basics for php and asp .net like der purpose and application where these languages are used and advice on books to follow for a fresher.Php for dummies. Asp.net for beginners. W3Schools is the best place I have found for web design tutorials. I agree completely. W3Schools taught me a lot about Javascript.im taking a class on PHP RIGHT now. here is my live project. http://www.samcarney.com/class/ecommerce/assignment4/pizza1.htm PS you wont really get a pizza when ordering and time is only correct if you are in Eastern Time...I just ordered 50 large pizzas which will cost $338.67!! Will they be in Ireland in 45 minutes? |
|
| 1019. |
Solve : Need help with a batch file with up to eight different user inputs...? |
|
Answer» I have a question for anyone who can answer it. I need to write a batch file for to automate some things for someone who is computer illiterate. The problem is that it needs to ask her up to 8 multi word descriptions, that will get passed to a seperate program. There may not always be 8 descriptions, but in every case thay will not be one word. I can write very simple batch files with a single variable, but this is way over my head. I'll show an example of what I'm trying to accomplish below. Any help would be greatly appreciated. |
|
| 1020. |
Solve : Best PHP web designing book? |
|
Answer» HELLO everybody! Anyone PLEASE could tell me the which ONE is the latest PHP EDITION (web designing book) now a days, and what is the best WEB (prefered one) designing and programing language / tool this days. Thank you all Tamnet I'd say its all a matter of opinion, but my personal favorite is "PHP for dummies" and just w3schools has GOOD stuff on php. I also think that php is the best for web design.Here is a good website: http://www.webdesignbooks.co.uk/ Not sure if they deliver to the US though, if you're from the US. |
|
| 1021. |
Solve : EOQ model,..how to compute? |
|
Answer» PLSS help me how can i APPLY the EOQ model,...i PRESENTLY developing an inventory SYSTEM for my THESIS,..help me!!!!Self help is best, there must be something here for you. Good luck |
|
| 1022. |
Solve : Amazon's Web Service for paymnents? |
|
Answer» I WOULD like to use Amazon's One TIME Use: |
|
| 1023. |
Solve : Compiler?? |
|
Answer» hey guys, I have a school project. its about the compiler. but I dont have any idea on doing this. All I know is that we can use any programming language in my previous subjects and we will use it as a compiler (im not sure ). You could also try actually researching the subject. When I was in school I was told this was a pretty important. yeah you're right. this is pretty important. i am searching now about this. this subject was not easy to understand if we are lack in infos. we are trying to ask our teacher about this but he gives us a limited information. this is very complicated for us. "sigh"Do you have access to a library? yes i have...i am keep on searching there. another problem is, we don't have computer lab in that subject. so that we feel that we are in the dark and no one can see a light.On FEBRUARY 6, 2008 you asked this Quote hi guys. i want to install visual basic. but i dont know if what version of VB is ideal to use? On January 25, 2008 you wrote this Quote how can i run programming using Turbo C Deerpark asked Quote You've written something in Turbo C correct? You replied Quote yup, i try to run my program into the prototype. when i run the program in TC also with my prototype with the same output. So, how is it that you now claim that you don't know what a compiler is? yeah but that is a using a single language. not using a compiler. omg how can i explain this? When you make a program in Turbo C, before you run it it is compiled. By the compiler. The Turbo C compiler. The one you used. A compiler only compiles into one language. jhay, you sent me a PM. Please CONFINE your questions to the forum. Quote hey dude, im very confused what really compiler is? based on your last reply. Here are your answers. 1. can you explain to me what a compiler is? A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the TARGET language). 2. can you give an example of compiler? Borland Turbo C++ version 1.01 tnx for this dude... mmhh Quote A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the target language).i got an idea on this. thanks. anyway, i bought a textbook for this. i try this one... |
|
| 1024. |
Solve : Help with AD / VBScript? |
|
Answer» Hey all, |
|
| 1025. |
Solve : Batch File Problem.? |
|
Answer» Hello, |
|
| 1026. |
Solve : VBscrip Progress bar?? |
|
Answer» hey all, |
|
| 1027. |
Solve : Puescodecode help drawing flow chart ( attached flowchart)? |
|
Answer» PROBLEM with flow CHART drawing? I have this assignment on drawing this code and i ws wondering if someone can help me. I kind of have an idea on how to start it start if temperature is greater than 65 degrees then get cotton pajamas else get flannel pajamas endif put on pajamas if tomorrow is a school day then set alarm clock endif while thirsty drink water endwhile while teeth need brushing brush teeth endwhile go to bed stop [recovering disk space -- attachment DELETED by admin]Cannot read your doc. Character ENCODING is wrong for English character set. |
|
| 1028. |
Solve : Help needed with 'NET START'? |
|
Answer» I need to write a bat SCRIPT which starts 3 services in a predefined order and if any of these services doesn't start PROPERLY then script should terminate WITHOUT TRYING to start services below it. |
|
| 1029. |
Solve : Form Coding for id? |
|
Answer» One software or ANOTHER changed the FORM code I had to having no ID, and I'm getting an error - "Associate form controls with tags using the 'id' attribute." |
|
| 1030. |
Solve : problem in develop intelligent tutoring system? |
|
Answer» anyone can tell me what kind of programming language, DATABASE suitable for the expert model for the intelligent tutoring system(ITS)? |
|
| 1031. |
Solve : batch file to xcopy? |
|
Answer» we have a series of towers xp, sp2/sp3 that we back up every night to a server. i use the following code... System 32 is the correct place for Sleep.exe Anywhere on the PATH is the "correct" place for executables.thank you, echo command line works. but i need to bug you guys again for two things. First: as the echo command runs, the file writes over itself so i would have to view the file daily. i started to surf again, and to fix that problem i used another line i found on this site to rename the ORIGINAL Report.txt file: for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" %%f-%%e-%%d.txt this adds the date, but the problem is if the backup is run manually, and the file already exists with the current date, the error message "Duplicate file name exists, or the file cannot be found" comes up and the report is not updated. so i tried to get creative, and thought i'd add a time stamp to the rename and tried: for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" %%f-%%e-%%d%time%.txt (there is a line to rename the file with the system time, but then no date is readily visible, that's why i am looking for a date, time format.) no formatting of the time, just stamp the time so that the two files (if necessary) can be made on the same day. but with this line, i get the message: ...>rename "Report.txt" 2008-07-16 9:22:19.05.txt The syntax of the command is incorrect." how do i fix it so it accepts the system date time? The second thing that i would like to do is have it report in the Report.txt file what if any files were copied. the screen does show the file names that were copied, and the number of files that were copied. Can that be an "echo" line after the xcopy... line? thank you for your help. jat timestamp has spaces so filename will need quotes for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f-%%e-%%d%time%.txt" tried recommended line, and error is "A duplicate file name exists, or the file cannot be found." thinking that maybe having the "" around just the time stamp, did not work either. thank you for your help though. jat The reason why you get that message is because you cannot have colon characters (':') in a filename. Since the %time% variable is of the form hh:mm:ss.cs (cs are hundredths of seconds), any attempt to use it as part of a filename will fail. You need to replace each colon in %time% with an allowed character such as a dash. Code: [Select]REM Replace a substring with another REM 1. replace each a in %string% with a b REM set string=%string:a=b% REM 2. Replace cat with dog REM set string=feed the cat every day REM set string=%string:cat=dog% REM Replace 1 char with nothing (i.e. remove each occurence) REM 3. remove every character a from %string% REM set string=%string:a=% REM 1. Replace : with - in %time% set ntime=%time::=-% REM 2. Replace . with - in %ntime% set ntime=%ntime:.=-% REM Personally I think it looks better with a separator between the date and the time for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f-%%e-%%d %ntime%.txt" Code: [Select]REM Personally I think it would look even better with only 1 separator between date and time REM if you don't need the hundredths of seconds you can remove the last 3 chars from %time% by slicing it set ntime=%time:~0,8% set ntime=%ntime::=% for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f%%e%%d-%ntime%.txt" |
|
| 1032. |
Solve : help excel string? |
|
Answer» Hi |
|
| 1033. |
Solve : Oulook --> Access VBA quesion...? |
|
Answer» hi guys, |
|
| 1034. |
Solve : QBASIC Help? |
|
Answer» Hey, QuickBasic 4.5 is the last version of the commercial Microsoft BASIC ide & compiler which can make .exe files. Qbasic is the cut down product provided as part of MS-DOS and Windows 9x. It cannot make exe files. I think it is clear that CosmicFlux has the latter. Then he has the perfect reason to upgrade...I know how to use the OPEN statement, I'm just unsure of the string that I'd use to read the contents of a file and display them on the screen. I'll have another look! Thanx! Oh, the IDE says MS-DOS QBasic version 1.1. Should I get 4.5? Quote from: CosmicFlux on July 30, 2008, 02:07:02 AM Oh, the IDE says MS-DOS QBasic version 1.1. Should I get 4.5? Certainly, why drive a Skoda when you could be behind the wheel of a RR? How you input the contents of the file depends on its format, you could start by looking at the Input and Line Input commands in the Help file. Good luck You should know that QBasic 4.5 is a Microsoft copyright product and the only legal way to get it is to buy a floppy install set e.g. on Ebay. To open a text file and display it on screen Code: [Select]open "I", 1, "myfile.txt" REM alternative format of OPEN command REM open "myfile.txt" for input as #1 do if eof (1) exit do line input #1, l$ print l$ loop close 1 |
|
| 1035. |
Solve : QBASIC PDS 7.1 capable of 3D Graphics???? |
|
Answer» Ok i read in the index that QBASIC PDS 7.1 can work with .OBJ files. and some 3D files are OBJ Files. Does that mean that QBASIC can work with 3D graphics(like the ones in Doom). I know this is probably a stupid question but i have never worked with QBASIC. well thats pretty much why i asked the question. cuz i knew that obj is a 3D file but since your telling me that it was created after QB came out then that changes the story. but thanks BC for your help macdad, have you ever heard of Google? http://www.google.co.uk/search?source=ig&hl=en&rlz=&=&q=obj+file+extension&btnG=Google+Search&meta=&aq=fIt would also REVEAL a lot of information to read about the OBJ files within the QBX help, rather then just read the headings and jump to conclusions. direct quote from the QBX help files(I had to start my laptop for this- I must not have put my older DOS stuff onto this comp due to XP). Besides, there's nothing quite like going naked at the prompt (that is, no helpful GUI waiting the background. Pah, Who needs a GUI when you can type commands a heck of a lot faster. Anyway... The BASIC compiler creates .OBJ modules that can be linked with .OBJ modules created with the following Microsoft products: C Compiler Version 5.10 and higher QuickC compiler Version 1.01 and higher Pascal Compiler Version 4.00 and higher Fortran Compiler Version 4.10 and higher MACRO Assembler Version 5.00 and higher Link BASIC .OBJ modules first when creating mixed language programs. wow, FORTRAN just keeps popping up in these forums lately. oh well. I find it strange that it wasn't in caps in the QBX help...Dias yes i have used google. and yes i looked up OBJ file before i posted this topic. but on FileExtensions.com it didnt tell me when it was created so thats my fault for not GETTING the correct info. |
|
| 1036. |
Solve : Crystal Reports 8 Dll? |
|
Answer» Hi, I'm LOOKING for the the Dll crpe.dll pertaining to Crystal Reports 8. |
|
| 1037. |
Solve : Can someone please help java program? |
|
Answer» I need to FINISH this program as soon as possible and i am having trouble. The specification is to Write a Java program NAMED lab32. The program gets the length and the width of a rectangle from the user, calculates the area and displays result. CREATE, compile and test the program using jGRASP compiler. |
|
| 1038. |
Solve : Creating a batch file to swap monitors? |
|
Answer» I'm trying to create a batch file that will swap my SECONDARY monitor with my TV. Anyone have any helpful tips. This is my first attempt at batch files. I"m using the Catalyst Control Center.You mean like FN + F7?Not exactly. I've got a dual monitor setup at my desk. I also have the Svideo out going to my tv. I am trying to come up with a batch file I can run when I WANT to swap my secondary monitor with my tv. That way I can watch movies I have on my computer directly on my tv. CURRENTLY I have to bring up the Catalyst Control Center, LET it load, swap the monitors, change the RESOLUTION. I'm just trying to save time. |
|
| 1039. |
Solve : download data from web sql databse? |
|
Answer» hey all, am i right in thinking that "dbhost" should be my website address?? (www.xyz.com) the dbuser and dbpass are pretty clear, as is the dbname. No, "dbhost" is right as localhost, because the server at http://www.xyz.com/ is localhost. But if you are testing it at home using WAMP, it will also be localhost. Quote from: blastman on July 21, 2008, 09:34:27 AM Code: [Select]<?php This is not a good way to store your username and password, though as anyone, if they have the web address, can view it. You would be better off to save it as "these_are_my_database_settings.php" or something to make it difficult for someone to GUESS it. Also, be sure to close the database connection: Code: [Select]<?php $con=mysql_connect("localhost","peter","abc123"); if(!$con) { die('Couldnotconnect:'.mysql_error()); } //somecode mysql_close($con); ?> It would be quite a long script getting all the form fields from a database to an email. You could try W3Schools for more information. Im kind of new to PHP, myself, but if you cant find anything here, I will help you as best I can. cheers fro the help; I've managed to get connected to my remote mysql server OK, but I'm having trouble with getting values from the database. I have a table called 'main'. in this table there is s column called 'id'. I want to know what the max number is in this column. I have the sql statement right, but it returns a 'resource' whcih when i run get_resouce_type() it produces "mysql query" How can I see the value that the sql statement produces??? If I run the sql statement on the server it produces "7" which is what I'm trying to get via my remote script. Cheers in advanceYou could try something like this: Code: [Select]<?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Couldnotconnect:'.mysql_error()); } mysql_select_db("my_db",$con); $query_table=mysql_query("SELECT*FROMperson"); while($row=mysql_fetch_array($query_table)) { echo$row['FirstName']."".$row['LastName']; echo"<br/>"; } mysql_close($con); ?> If you had two fields in the table, "FirstName" and "LastName", this would write the contents of those fields. Alternatively, you could email them to an email address like this: Code: [Select]<?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Couldnotconnect:'.mysql_error()); } mysql_select_db("my_db",$con); $query_table=mysql_query("SELECT*FROMperson"); while($row=mysql_fetch_array($query_table)) { $to="[emailprotected]"; $subject="Testmail"; $message="$row['FirstName']."".$row['LastName']"; mail($to,$subject,$message); } mysql_close($con); ?> Please dont copy and paste it, because some of it may be incorrect. |
|
| 1040. |
Solve : plzzz help me out !? |
|
Answer» i want to make a circle consisting of 72 LEDs (in visual basic using ACTIVEX controls) can some one help me out how to make this i ll b very grateful and can someone guide me from where i can get free activex controls like TOGGLES switches,,,buttons,,LEDs,,,ETC any link or so plz |
|
| 1041. |
Solve : Batch Script searching an exe file and execute it.? |
|
Answer» Hi Guys, SET filename=msaccess.exe I would use the snippet you have, as such: Code: [Select]@ECHO OFF :Start REM Change name to whatever the db name is, not access itself. SET filename=NameOfDB.accdb FOR /R C:\ %%a IN (\) DO ( IF EXIST "%%a\%filename%" ( SET filedir = %%a SET fullpath=%%a%filename% GOTO break ) ) :break REM This says change to the file directory. If directory errors twice, then an error message is displayed. cd %filedir% || cd /d %filedir% || ECHO There has been an error locating - %fullpath% - Path may contain spaces or symbols that cause this error. REM If the file exists, calling it with a start command will launch the associated program. start %filename% REM ----------------------------------------------------------------- REM This snippet added for double checking and closing. REM ----------------------------------------------------------------- REM change "msaccess.exe" for use with another program name (if it is ANYTHING else). tasklist /nh /fi "imagename eq msaccess.exe" | find /i "msaccess.exe" >nul && ( exit ) || ( Echo The script has errored, and MS Access is not running. echo Check script for errors and/or check MS Access version for calling compatibility. echo PRESS any key to attempt the search again. Close the window to exit. goto Start ) ECHO Ambiguous error: CHECK SCRIPT FOR ERRORS. pause>nul exit I tested this, and I know that it isn't working atm... but I think it'll set you in the right direction. I'll try to update this with something working if I can... but I'm pretty busy right now. |
|
| 1042. |
Solve : Use batch file to call sqlcmd? |
|
Answer» Env: MS Server 2008, MS SQL Server 2005 Good point Salmon Trout, you have to use ^% vs ^* No, to get a batch script to echo % you need to put %% Thanks for your efforts, but the problem remains...with no output from the query. Any advice that points me in the right direction would be appreciated. Do you get an output if you run the query manually? Have you checked that the batch is producing exactly the same query? Salmon, thanks for taking the time to help out. Quote Do you get an output if you run the query manually? Have you checked that the batch is producing exactly the same query? The SQL query runs without problem in MS SQL Mgmt Studio using the wildcard LIKE clause. The result that is returned there is correct. The DOS prompt produces exactly the query that it should but nothing is returned as output. No visible errors are returned when running the batch script in the DOS prompt. I've narrowed down the batch script and SQL Query to get rid of noise to make troubleshooting and testing easier, see code below: Code: [Select]@echo on setlocal enabledelayedexpansion :: There is one supplier with ID 41003898 in database, type is char set sql="SELECT SupplierID FROM Supplier WHERE SupplierID LIKE '4100389%%'" CALL sqlcmd -S server/s1 -U sa -P passw -d DB -Q%sql% -o output.txt -u -s "" -w180 output.txt endlocal If I change the SQL above and put LIKE '41003898' in the batch script it returns the correct result = one row in the output file.Since you have ECHO on, what happens if you put PAUSE at the end of the batch to halt it to give you time to copy the echoed sqlcmd line from the console and paste it into another console window, i.e. run it manually? I note you have "narrowed down" the batch; that is all very well, and I understand the reason, but you'd be surprised how often the cause of a script failing is somewhere in what has been removed "for clarity". For example it makes me uneasy to see you using a double colon (a broken label) as a comment. It might have been OK in MS-DOS, but in Windows NT family batch scripts this is a frowned-on practice (for example it breaks a script if it is within parentheses such as in a multiline FOR or IF structure.) It is undocumented, unsupported and should be avoided. Assuming sqlcmd is the Microsoft sqlcmd.exe, why are you using CALL to invoke it? This was embarrasing...so simple, yet so friggin difficult for me to solve on my own...thanks a bunch Salmon. Leaving out the CALL cmd solved it. A bit strange though that only the wildcard LIKE clause broke and nothing else... CALL is only for running one batch file from another and passing control back to the first when the second one finishes; you can use START for other types of executable but you can use the path and/or name of an exe directly. |
|
| 1043. |
Solve : Python 3 script? |
|
Answer» I need help writing a python script that will loop through a jar file and extract all files of a specified TYPE while keeping the file and directory names. Unless an "r" or "R" prefix is present, escape sequences in strings are interpreted according to rules similar to those used by Standard C.I had the 'r' in there and the error was the same. Current code: Code: [Select] import os import zipfile from zipfile import * zip = zipfile.ZipFile("C:\Users\Jordan.Office-PC\Desktop\BatPad.zip", 'a') names = zip.getinfo() print(names) zip.close()I don't see an 'r' in there. It goes before the string literal itself- eg r"C:\Users" rather than "C:\Users". You'll encounter a error where ZipFile.getinfo() takes two arguments and you are only passing one (well, none, but it gets self since it's an instance method). IF only there was somedocumentation on these methods and what they do, could save a lot of you simply googling how to do what you want and making a Frankenstein's monster out of the bits you find. You're probably after .namelist() here.I get the same error with 'r' in there. could be that I am on windows vista and need to find a way to run a py script as admin? P.S:your documentation is for 2.7.4, I am using 3.2.1Quote from: TheWaffle on April 27, 2013, 05:48:02 AM I get the same error with 'r' in there.Post the code you are actually using. Quote could be that I am on windows vista and need to find a way to run a py script as admin?Assuming the user folder you are trying to access is the one for the account being used, no. Quote P.S:your documentation is for 2.7.4, I am using 3.2.1There is no difference between the two that would affect this script. my notations on the getinfo() method are still accurate. I've tested my original implementation, which required a few FIXES: Code: [Select]#!/usr/bin/env python import os,sys, zipfile zip = zipfile.ZipFile(sys.argv[1], 'r') for name in zip.namelist(): #perform test condition here to see if name is a name you want to extract. #eg if name.endswith(".java"): if name.endswith(".java") print(name) zip.extract(name) zip.close() It works in all the versions of Python I tested in. Accepts filename as part of the commandline. Your hang-up is on making a string literal, and you are almost certainly doing something wrong. What, I can't say- I lack psychic debugging powers so I cannot actually see the script you are running. |
|
| 1044. |
Solve : Running a python script from a VB program?? |
|
Answer» Hello, this is my first post. |
|
| 1045. |
Solve : PHP MySQL code for deleting items in cart doesnt work0? |
||||
|
Answer» i am making php mysql code for admin side to delete ITEMS from shopping cart.Please FIND the error in the code , cause i cant find it.
} else header('location: adminlogin.php'); } else header('location: adminlogin.php'); ?> include 'footer.php'; ?> 2) Delete product 1 doesn’t work as there is some error in the code. Please remove the errors please. Here is the not working code of delete product 1. : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> Delete Product Details function clearText(field) { if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue; } include 'header.php'; ?> Delete Product Details if(isset($_SESSION['uname'])) { include 'dbconnect.php'; echo "Welcome ".$_SESSION['uname'].","; ?> if($_SESSION['utype']=='A' ) { ?> if(isset($_POST['txtPName'])) { include 'dbconnect.php'; $txtPName=$_POST['txtPName']; try { $sql="delete from product where idProduct=:idProduct"; $q = $dbconn->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY)); $q->execute(array(':idProduct'=>$txtPName)); echo " Product ID : $txtPName one quantity deleted"; include 'footer.php'; ?> [recovering disk space, attachment deleted by admin] |
|||||
| 1046. |
Solve : Programming language C++? |
|
Answer» sir C++ All-In-One Desk Reference For Dummies by John Paul Mueller and Jeff Cogswell (AUG 31, 2009)Quote from: Geek-9pm on February 04, 2013, 01:24:52 PM This is in plain English. I got this book when it was still new (and $35 or so if I remember rightly) and it was definitely worth it. http://www.cplusplus.com/ is a good reference too, but I've never actually followed their tutorial specifically.This issue with C++ is there is too much info. The book I have here is like a telephone book for a large city. I will never finish it in my lifetime, unless I live to 110. (Which is possible.) Microsoft offers a free version of Visual Studio, which includes a version of C++ Which tutorials and examples. Some people learn quicker with hands on tutorials instead of huge books. some comments in another forum: http://www.cplusplus.com/forum/beginner/68648/ Another BURP: http://arstechnica.com/information-technology/2012/09/visual-studio-2012-free-desktop-development-tool-out-today-first-update-outlined/ More from the horse's mouth. http://winsupersite.com/blog/supersite-blog-39/windows8/microsoft-releases-visual-studio-express-2012-windows-desktop-144234 From the above you see that it is not just about how to code. MS takes the approach that you want to look at the big PICTURE and the code is just a one of many bridges on your trip. |
|
| 1047. |
Solve : exporting data from excel to word, letter generator? |
|
Answer» i am trying to create a letter generator in excel / word like this : |
|
| 1048. |
Solve : Programming in C? |
|
Answer» CREATE a function called CreateArray(int n) which will create an array of INTEGERS (1,2,3,4,.....n) where n is a parameter of this function and it is the SIZE of the array. So eg. if I call the funtion this way : CreateArray[3], it should create an array 1,2,3. This function has to return a created array. 2. Create a function called PrintArray (int array[]) which will print the array created by CreateArray(n). 3. In main function call both functions so that we can see the results in the console. I use Codeblocks IDE. Can someone help me with writing this program PLEASE?Is this Homework?YES. Can you help? |
|
| 1049. |
Solve : Changing javascript code? |
|
Answer» Is there anyone who can change a javascript code to a HTML code or Flash code for me, or help in anyway. |
|
| 1050. |
Solve : help with python (opening directories)i=100 l=1 zulupass = input("please enter t? |
|
Answer» i=100 open("/Users/johntoniolo/Documents/pythonprojects") That's not how you open files in Python. In fact that looks more a folder name than a file. Have you looked at any Python documentation? that file is just a file i half effortly grabbed. what i want is to be able to PUT a simple self writen password program on a file. it is a good project i think for learning and practicing codes. so lets say i wanted to open ummmm. all my pictures. id asign it open ("yadyada the path for my pictures folder") and it WOULD open finder with the pictures folder pulled up. is my logical thinking correct See here for example http://stackoverflow.com/questions/3520493/python-show-in-finder http://stackoverflow.com/questions/6631299/python-opening-a-folder-in-explorer-nautilus-mac-thingie |
|