Explore topic-wise InterviewSolutions in .

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.

2051.

Solve : got poor at it!!!!?

Answer»

eow to everyone im getting much huck in programming can i find one person who can help me with it TNXX!!! Could you please rephrase your question because it is way to vague. Simply asking for help in programming is not enough. You will need to be more specific.
Do you need help choosing what programming language to learn?
Do you need to get better at a language you already know?
Etc.

And please make an effort at WRITING comprehensible sentences. I could barely UNDERSTAND your first post. lol i haven't been able to understand ANYTHING this dude says HHA

2052.

Solve : How to convert a binary or hex file into its original file?is it possible??

Answer»

Hello everyone,

I want to know if I convert a file of any format such as mpeg,avi,doc etc into
its binary or hex file.

Can it possible to convert this binary or hex file into the original file?

if it is ,please tell me in which language?

thanks you all.I'm sorry but your question doesn't make sense to me.
All files on your computer is in binary. This is how they're stored on a hard drive. Software can then take these chunks of binary and translates them into documents, videos, pictures, etc. But the files are always in binary.
When you view a file in a hex editor, the editor is also making a translation. From binary base-2 to hexadecimal base-16. When you make an edit, the hex editor takes your base-16 input and translates it BACK into binary in ORDER to store the change to the file. In fact everything a computer does is in binary, it's the only language it understands.

But what exactly is it you're trying to accomplish? If you GAVE US some more details we might better be able to HELP you out.

2053.

Solve : vbscript loop help?

Answer»

How do you make a loop that will do something until say a CERTAIN key is PRESSED?its OK i SOLVED my own problem

2054.

Solve : how to disable mouse button in regedit??

Answer» HAI,

I am going to DISABLE the right click of muose button
but in regedit

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

here Explore folder not found

pl TELL me how to set

OS winxp professional usingQuote
I am going to disable the right click of muose button
Why?
I have to implement this one security.

lot of sec is there which is ok but only the mouse righ click disable pending.

if U know pl ans, http://www.kellys-korner-xp.com/xp_tweaks.htm
#56, right pane ( Enable or Disable Right Click Context Menu)ok thanks,

I need it for user, not with admin pl conferm...

is it for user setting or system setting..?
2055.

Solve : BATCH - DATE /t combining with IF?

Answer»

With all the tools AVAILABLE on WINDOWS machines, I'm surprised to see batch code still in use.

Code: [Select]@echo off
set today=%date:~4,10%
for /f %%X in (date.txt) do (
if %today%==%%x goto play
)
goto forbidden

:play
start notepad.exe
echo Able to play
pause
exit

:forbidden
echo Unable to play
pause
exit

Date.txt: one date per line in your regional format. Based on your console output, mm/dd/yyyy

If you were planning on getting the date data from the web, there are techniques available in VBScript (free & installed on your machine already) or any of the other Windows Script languages.



PS. Actually I meant Powershell not the Windows Shell. Powershell is the cmd prompt on steroids. It is an optional download for XP. I was just curious if it came installed with Vista.Sorry, but that code doesn't work. He does FIND the file because when i put an invalid filename it says "Can't find X-file".
When i put one date in the date.txt, it doesn't work
When i put multiple dates in the date.txt, it (ofcourse) doesn't work either.

But a friend of mine got a solution for this, at least, he said that so the real question of this topic is answered. A lot of thanks for your quick and solid help.

The final solution to use dates in an if-statement in a batch-script:
Code: [Select]@echo off
REM sets the input-date to mm/dd/yyyy
set today=%date:~4,10%
REM put below the dates
if "%today%"=="01/09/2008" set td=g
if "%today%"=="09/01/2008" set td=g
if "%td%"=="g" (Goto play) ELSE (Goto forbidden)

REM matched date will start this
:play
start notepad.exe
echo Able to play
pause
exit

REM unmatched date will start this
:forbidden
echo Unable to play
pause
exit

PS. Well, as far as i know or searched, it isn't included with Vista.

2056.

Solve : Physical memory dumping ("IRQ_OT_LESS_OR_EQUAL")?

Answer»

hello everyone this is my second help thread here in this forum, after solving my first problem i hope you can help me solve this one too...
i bought my unit like a month ago, its a 6600 QuadCore 2.40 Ghz and 4GB kingstone ddr2 ram 8800 geforce (320/640mb) and till now it worked just fine...
lately it began crashing something like an hour after im playing age of empires 3 (dont know why exactly it happens, but ive checked it with several other games and it worked perfectly WELL)... anyways couple of days ago ive started getting this error EVERYTIME i turned on/restarted my pc:

today while trying to run every game in my pc, ive been getting a blue screen that shows what i wrote at the subject (Physical memory dumping ("IRQ_OT_LESS_OR_EQUAL"), right after i restarted ive been getting this error:

(in both upper windows ive pressed CLICK here for more details)
ive been looking for a solution at google for nearly 2 hours now, i dont know much about this things, so usually when i get an error i type it in google and find the solution, basicly ive found so many articles regarding to this subject, each one telling me a different thing (RAM problem, CPU overheating, graphic card driver problem which i updated btw and it still didnt work, dx problem etc etc...) anyways i dont know what to do, ive downloaded the latest windbg but i dont know how to use it, ive also downloaded +memtest but i dont have any floppy disks currently on me and im pretty unsure it wont fix it... ive posted my problem here since everywhere i went it said its a bug, i realy hope you guys can help me, thanks again for your time,
IdanPhttp://tweaksforgeeks.com/IRQL_NOT_LESS_OR_EQUAL.html
Quote

Most commonly it is the CPU overheating. A close second would be bad RAM.

But...
Quote
i bought my unit like a month ago
Take advantage of your warranty.umm but the problem is that its all new, plus it worked fine for the few weeks i had it with me, plus i dont think its a cpu issue since it doesnt happen after a while it happens before the game starts like a second after i run it... also i dont know much about these things but i paid for 4 GB of ram and when i press properties in my computer it says i only have 3.24, does it have anything to do with it? i also paid for 500 GB hard drive and i noticed my drives combined make like 460 GB, do you think both parts i bought are bad? anything else that might help me??Quote
i paid for 4 GB of ram and when i press properties in my computer it says i only have 3.24
It's normal behavior. Is 4GB listed in BIOS? If so, you're fine in this department.

Quote
i also paid for 500 GB hard drive and i noticed my drives combined make like 460 GB
It's normal, too.
Mathematically:
# 1 Gigabyte is equal to 1,024 Megabytes.
# 1 Megabyte is equal to 1,024 Kilobytes.
# 1 Kilobyte is equal to 1,024 Bytes.
...but HD manufacturers use 1,000 in place of 1,024, any number of times, when advertising space.
So, advertised 500GB drive is in reality less then that.
My 500GB HD shows 465.65GB.I suggest you try memtest. It wont fix your problem but it will tell you if the cause of your problem is defective RAM.

And just to add to what Broni said. If you want to fully utilize your 4 gb of RAM you will need to switch to the 64 bit version of XP or Vista.
http://www.diskview.com/disk-size-discrepancy.htmi will buy some floppys tomorow and ill try to use memtest... btw i heared that 64 bit is a windows version thats for more artistic uses like photoshop, digital cameras and STUFF i basicly need my system to be games compatible and i hear 32 XP is the best for this kind of things...
oh and broni thanks for clearing that out for me i was realy worried i bought some bad parts =P my bios does show i have 4GB
thank you both for the quick replys i will post the results from the memtest tomorow and pray you can help me fix it Yeah 32 bit is still your best bet for game compatibility. Just saying you wont see the full use of those 4 gigs.i talked to my pc manufactor and he told me since i cant load any games the problem is probaby my geforce and that i should take it for a checkout... since nothing else works i guess that is what im giong to do... thanks for your time again.hi again, just wanted to say the problem is fixed and my games are working now =] my friend have told me i should try lowering the adapters mode hertz number and apperantly that fixed it right away =] my LG is 19 inches, 5000:1 DFC, 2 ms and i was running it by 1280 by 1024 with 60 hertz when i lowered it to 1024 by 768 with 75 hertz it worked, the only problem is now the icons look realy ugly =P like they are streched up and down, is there any way for me to keep the old adapters definition for when im using my desktop and make it change while playing a game?
and another thing, i keep getting the error i was talking about at the beggining of this thread, theres the pic:
(in case you cant read what it sais:
ATKKBService.exe - Application Error
The INSTRUCTION at "0x77e76f25" referenced memory at "0x00000001".The memory could not be "read".
Click ok to terminate the program.
Click cancel to debugg the program.
ive tried pressing both and this still appears after every reboot.
can anyone please tell me what it is? is it harmful? how can i fix it?
thanks ATKKBService.exe is part of your nvidia video card. Maybe, you need to update its driver.

Quote
i should try lowering the adapters mode hertz number
Actually, I can see, you revved it up from 60 to 75MHz.Quote from: Broni on January 10, 2008, 07:03:23 PM
ATKKBService.exe is part of your nvidia video card. Maybe, you need to update its driver.

Quote
i should try lowering the adapters mode hertz number
Actually, I can see, you revved it up from 60 to 75MHz.
yes, i mean, if you look closely i used a lower resolution with the 75 hertz, the one with the 60 was higher.
and according to the nvidia drivers update page:
"Your PC currently has the latest driver installed for your GPU. No driver update is necessary at this time."We're talking about two different things here....
You lowered your screen resolution from 1280x1024 to 1024x768.
At the same time, you increased refresh rate (frequency) from 60 to 75MHz.
Just to clarify....if it works, great.

Quote
Your PC currently has the latest driver installed for your GPU
Disregard the above. Just download, and install new driver.Quote from: Broni on January 10, 2008, 10:51:20 PM
We're talking about two different things here....
You lowered your screen resolution from 1280x1024 to 1024x768.
At the same time, you increased refresh rate (frequency) from 60 to 75MHz.
Just to clarify....if it works, great.

Quote
Your PC currently has the latest driver installed for your GPU
Disregard the above. Just download, and install new driver.
hey, i just reinstalled my geforce driver, if thats what you meant?
it didnt work... im still getting that error everytime my windows starts =[...Quote
i bought my unit like a month ago
Take advantage of your warranty.
That's all I can say, again.
2057.

Solve : usb read write stress test?

Answer»

I need to perform a stress test on usb flash drive
But i don't know how to start it.
My idea is write an automated program to let system copy FILE from hdd to usb,then delete it after store in usb,then copy another file from usb to hdd.
can anybody here help me this?
thanks.You'll need to fill in the filename.ext and use the correct drive letter for the usb drive, but this may help.

Code: [Select]@echo off
set usbdrive=i:\
for /l %%x in (1,1,99) do (
copy filename.ext %usbdrive%
del %usbdrive%filename.ext
)

If looping the code 99 times seems like OVERKILL, feel free to change it.



Note: As written, the code will copy the same file repetitively, just be sure to choose a file that fits on the drive.
does this program must run under dos mode(boot from usb bootable dos)?

the usbdrive is my flashdrive?which where it boot from?

the file.ext should PUT in hdd?The original script was written for the XP cmd processor. It will probably run under Win2000 and Vista.

I didn't know DOS supported USB but this snippet should run in all versions of MS or PC DOS.

@echo off
:loop
copy filename.ext usbdrive:\
del usbdrive:\filename.ext
goto loop

The yellow highlight is name of the file on the HDD. Use a fully qualified PATH if necessary.

The red highlight is the drive letter of the USB drive.

Oh YEAH, the script is an infinite loop. You can kill it with CTL-C.

2058.

Solve : Help me figure this #(!^#%! thing out!?

Answer»

Hello!!

I'm programming in C# and need some help.
There is one thing it this code that seems to be causing a problem.

This is a part of the code:

Code: [Select]DialogResult dlgRes = [color=red][b]null[/b][/color]
dlgRes = MessageBox.Show(
"Windows XP has caused an illegal operation and will now CLOSE.",
"",
"This is the normal behaviour of Windows. Please punch a hole in the monitor",
"and smash the keyboard to continue. If the problem persists, please set the mouse on fire.",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
The word highlighted in red is the problem. When I look in the errors, it says ; expected. When I add the ; after the word, I get a whole bunch of errors that need to be fixed. I've being tinkering with the code all day and had no luck.

Anyone KNOW how to fix ??

Thank you.

P.S I don't want anyone complaining about what the dialog box says.I am not up to PAR with C#, being that I am a C++ GUY, but have you tried other conditions for this instruction other than NULL, possibly an inverse function that will perform the same output? Such as TRUE instead of FALSE and the conditions opposite of the arguement. I have seen before where it should work one way, and when you inverse the logic, whalla it compiles and is happy... Makes no sense as to why it doesnt like to compile and run straight forward, but by inverse logic it compiles and operates!

I just scratch my head and say ok,,, its working, lets move on to the next project! ha ha

DaveThanks for the reply. I'll try that ASAP.

2059.

Solve : Visual Basic Express?

Answer»

I'm new to VB, and a buddy from WORK told me to download it and try it. So i did. Only problem is that i cant figure out how to start a new program?

If someone COULD point me in the right direction, it would be greatly appreciated. ThanksClick on File > New PROJECT and click on Windows Forms Application.
Type in the name for your project, and click OK.

Be sure to check out the MSDN Library.LOL. Thanks dairyman, I guess I should have been more detailed on my "problem".

What I meant was, how do I ACTUALLY open VB?

But I FOUND it. It was put in my start menu, (only place i didn't look for some reason) rather than on my desktop.

Thanks though.

2060.

Solve : Another batch file question?

Answer»

I have another question about a BATCH file i made for backing up data. I want to set it so when executing the batch, it will prompt you to enter in the variable information in the command window. So at the moment there are 2 variables that would need to be entered as in the following script:
Quote

:: variables
set drive=E:\Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /y
set PROFILE=c:\Documents and Settings\

So the variables that would be prompted to CHANGE are Set drive for the drive letter and folder destination. As in E: the drive letter and Backup being the name of the destination folder. And set profile would be the profile name at the end of Documents and settings. Any help would be appreciated. ThanksTry using the set statement:

set /p variable=promptString

variable is any arbitrary name
promptString is any string including SPACES (every character is used literally)



2061.

Solve : What am I missing...?

Answer»

I want to use a batch file to start 4 programs and I would like to create a log to show what date and time they where started. I can ge the programs to start and even have the log but this is what it looks like....

The current date is: Sat 10/20/2007
Enter the new date: (mm-dd-yy)
The current date is: Sat 10/20/2007
Enter the new date: (mm-dd-yy)
The current time is: 23:13:08.95
Enter the new time:
The current date is: Sat 10/20/2007
Enter the new date: (mm-dd-yy)
The current time is: 23:13:08.95
Enter the new time:

How do I get it down to 1 date and 1 time?
Can I append the date and time to the log for record purposes instead of just the last time it was run?

Thanks in advance for your HELP.

richocki Please post your .bat file.Yeah I guess that would have helped... sorry about that

START /min C:\_internet\spywall\spywall.exe
START /min C:\_tools\winpatrol\winpatrol.exe
START /min C:\_tools\REGRUNSUITE\WatchDog.exe
START /min C:\_tools\StartupGuru\StartupGuru.exe
START /min D:\_Applications\YCiii\YankClip.exe
copy startlog + date + timeFor your FINAL line try:

echo Programs started on %date% at %time% >> Startlog

You have used the date and time commands which are called to AMEND the date/time at the command prompt.

The >> causes the OUTPUT of the echo command to be ADDED to the startlog file so that the start info will be appended to the file and will remain there until you delete the entries. You can amend the text string and the %date%/%time% outputs to suit your requirements.

Good luckDusty thank you for your help. That is exactly what I wanted to do.
Thanks again You're welcome - thanks for coming back to report your success..

2062.

Solve : check if file exists in vb?

Answer»

How can I CHECK if a file exists with visual basic?VB6
Code: [Select] Dir("C:\test.txt")
vbscript
Code: [Select]set objFSO = CreateObject("Scripting.FileSystemobjecT")
objFSO.FileExists(FILEPATH)
...
THANKS for the reply, it helped. I ended up doing this:

Code: [Select]My.Computer.FileSystem.FileExists("C:\file.ext")

2063.

Solve : invalid page fault notice?

Answer»

I recently attempted to install a Nikon photo veiw program to my computer so that I can veiw photo's from my dig CAM. The program failed to work, so instead of leaving all of that data on my machine, I uninstalled it. Ever since then I get an error message when I open a window using IE 6.0. The message says that IE has performed an illegal ... I click on details tab and it says "IEXPLORE caused an invalid PAGE fault in
module MSVCRT.DLL at 0167:78015ca2.
Registers:
EAX=0000794a CS=0167 EIP=78015ca2 EFLGS=00010246
EBX=00000010 SS=016f ESP=006475b4 EBP=006475c4
ECX=7803a13e DS=016f ESI=70a7794a FS=60df
EDX=0000000f ES=016f EDI=006475fe GS=0000
Bytes at CS:EIP:
66 8b 0c 41 f6 c1 04 74 6b 8d 48 d0 3b cb 0f 83
Stack dump:
0064766c 70a741cc 00000000 00000000 00647620 78015c08 006475fc 00000000 0fffffff 00000000 637a2fa8 006475fc 00000000 00000010 0064768c 00482ff8"
The message is the same everytime I attempt to use IE. What is the problem, and what can I do to fix it? So far I have reinstalled IE 6.0, I have run a registry repair program, I have scanned and removed spyware, and I have run a virus scan that came back clean, I even reinstalled the suspect Nikon program in hopes of correcting the problem, all to no avail. Any and all help that you can offer is greatly appreciated.

Thanks
MelBradley

p.s. I do not have windows 98se on cd, can you direct me to a website where I can possibly DOWNLOAD it if needed to fix this problem? By the way, the IE inside my aol does not seem to be effected, other than it is incredibly slow, and extremely unreliable and sometimes will not DISPLAY certain websites like yahoo mail, excite news, and others.Welcome to the CH forums.

For a possible solution to your problem see here

It would be against forum rules for anyone to tell you where to download any MS copyright protected materials, if they were available for download. You should try EBAY or similar sites to buy a legit copy of the Win.98se cd.

Good luck

2064.

Solve : pvw files?

Answer»

I do not know what a pvw file is but they keep popping up in my picture folder. I recently installed a KODAK camera and WONDER if that is where they are coming from. I just want them to go away and stay away. I have went to the folder options and looked for PVW and it is not there. If I click on one I get the box to have the internet find the program to open it. The only other software I have installed is SignBlazer which I use to cut stencils on a plotter. I'm suspecting the camera though. Do you know how to get rid of them and have them stay gone?

Any help much appreciated!According to: http://filext.com/file-extension/pvw
PVW files are simple text files holding information about Saved Views (visual layout of on-screen reports).
It comes from: Portfolio Saved View program: http://www.extensis.com/en/products/asset_management/OK. Now does anyone know how to get rid of them. I did not need them before and I'm pretty sure I don't need them now. I don't even have to view a picture to have them show up. They are driving me crazy. UNINSTALL the software that's creating the files then. Do you have Portfolio installed?Since they are text files, open couple of them with Notepad, and see what they say...Opening with notepad gives this result

* þ – Œ ö
ì æ î ( 2 ü ; & $ € à 2005:09:05 11:49:49 Ž ‡ + ñ ½ ? 0 F €
`P8$
„BaP¸d6ˆDbQ8¤V-ŒFcQ¸äv=?HdR9$–M'”JeR¹d¶]/˜LfS9¤Öm7œNgS¹äö}?PhT:%?G¤RiTºe6?O¨TjU:¥V­W¬VkUºåv½_°XlV;%–Íg´ZmV»e¶Ýo¸\nW;¥Öíw¼^oW¸Ä€
`P8$
„BaP¸d6ˆDbQ8¤V-ŒFcQ¸äv=?HdR9$–M'”JeR¹d¶]/˜LfS9¤Öm7œNgS¹äö}?PhT:%?G¤RiTºe6?O¨Th­6C âm6²WËê•v½_°EVêås½ÄâG"ªå†Ýo¸Wm‡ƒ™ÎÌâ»Û-—åöýA¶Ïg»½Ý,?GÕͧq¹LžO_òY<¤ºès?ž?X[=ݸÐh'Òé|ïKcWeuZ½dVدS)³—Œî×hâã÷:Ýæ÷}¶lø[k¾^÷¿ärr‰t‚@ðt:c
Üó§o—Ôr»]¼®==ÖÏh:L²Û¹çô_y‰Ÿ/é?À@€
`P8$
„BaP¸d6ˆDbQ8¤V-„«ÔÊc‰¸Üïq8¤)l¶<‘‰d¶]/˜LfS9¤Öm7œBÈ„B] ?‘Ðd'ƒ™ÎL¶œÒiTºe6?O¨T`ôyIÒ…$qQgóÑê¥_°XlV;%–.†@jõ{5¶Ýo¸\nQd=¥’¾_Zèt[?öýÀ`i‡i¶ôâS§ÓõÊö?ÈdrPXÒ›#ÉæsY¼å‚;?áóº=&—M/?¢(õ}NŸ]¯Øl`w[V†Bål¶Oç³ÞË}¿à`±˜|ÿ?ÇäY”Éäõ]¸ÐhrzXëºûhŸK¥ð†Üÿ-=Ó±í0ô–ãÞËíœ]ìgoiÕóM·g¼=Wã÷™vóùüd'çšJ±'ăZü%î«Äõ;hc>5ã;øÞA
ô½Pi™D5ÄÄD‘–åq\Ä“ðl*Š*îôÃçû´ä±GÆ*;*ÊÆ1ìCDJ< 3lû°Kƈ;Ô¸qûÕ8è€
`P8$
„BaP¸d6
‡@SÉt»½Äâ‹F"çq¸âm6ÂOC¤pÝ”Eå1©d®]*˜Kf2÷Ý\®G"
ƃB3PhT:%iG™Æã´Ze6?O¨TjPxÊY?`-–Õ8)üö{“D4‰•–Ég¤¸”Éäô|Û&®\nPi5Ö@=¬–è%|¾K¤<&
‡Äb`‡ƒ™ÎÑf´ãòS4Ù]ŠÌBÕêe6NY|ÌètZ=&“=§Èêr].¶?Hg´í¦×m·ƒj5{©£MŽÇÍ©¯£QœÏ¸Ì_—Í6C#=°ätz]<>óUº¬­±‡>¦µ?ë8¹]ß'—Í
ðúbö»lƒÏ¡“9[-Ÿ?ß÷üwv­ÞªrD?ïË‘ŽŽËøàÀPL×9I3øÝ>FÌ…$Ä2#ºéŒ"ï’ðœ=±NS·?«,,@Á0âꎷƢŽRi#Ë’ê¥JsJŒ¾ÌC*›ÉqÊÜö!“ËKӌ䅭ÓJÊâ¸êäñ;<,´¦*ÄzV‰Ã³?
COaNO“óâb¦A©ÝB4tÆ´ÏêrÄ•ÑdýOÀI4‹Äðj;BRÈÊă;4ÝTÌI£Ù
¢3*Ÿ%påA]¶ës•aKœM‚Lí½‘m‡,Q³áÐh¥x¡ €
`P8$
„BaP¸d6K¤q¹ÞâqEã1ˆÔv9?ÈcÒ)ŽM%”HRÈô|žI/—Le3)„€ðt:)Óéø|ö=¤góÙî}G¤RiTºe6?O…g52y<Óc±æ•¹?vk_®X+Ö%ŽAUOQ(Õ
b?‘ÔŽvË¥Öíw¼^+åò}.—µ7
-‹
…ÄY°ø¬L¿ÐН4Ëò^[emailprotected]äóY¼æv?À[-²7'+e³?Ôc5X½f§[ ½¯­V¬õ1ˆDHöè?®÷}¿»dUêe6»?«ãëù\˜ÑÄÚmàSmWŸG­×ìB4ng#½Ëï÷yQŸ?³lCÛäy?·Ý½ç|_?×Á÷æÅmú‚Ý\W:‹›ùÀŠ{âú?´£+&—AÐŒ$£·pdÂÍrtžBjƒcC±D‚¼?ÌÃB†¢Äjl>?4¦Ì[ìŒMǺh¬ñ¢•$
¤}!Àoñ]
ÅRLs%²«Šq'J?#"ÝÈÎLݨÒÔÝ¥d{c#7lÄÂÝÅò\ÕJ¨d??®Slå9Çî|u&E¢i™B5#63ÕA¡‘Œï5»ô" ÑTm?ËýI¤c7£L­MÑÐ<ñDBô€—Ó‹Ê€
`P8$
„BaP¸d6ˆB
Fs;½Äâ‹F"ñ˜än=?Gd1ù–I'‘Êc1d¶]d¯—Ògüö{—ÎgS¹äö}?Pa‹urºiG”R%Tše.?˜¯¨U8MDðs9È“Ét½F©_°XlV;$°ðt:R­TÛ]>ÙMr¶[6ZLÎÓc±æ—KåöýÀCØe±üôz¶âmöìe*ãsÀË*4£‰¸Ý‘ÌfsYºžÓ‹Åct9W/œªÌŽ&ÓlÓM^Ôlv[=¦‰FÒhw[˜þÖ·š!?(÷?Ǿ]·z.g.EÇO×5Ú͇#­×ìO¹[ÎosC³Ã”ÉäôÑNŸOö}^¿d¶­Xçw¾R??âõ(K¤ßç÷ü†>.ìš`P8$
„BaP¸d6ˆDbL•òøþ{=»ÜN(Ôr7?GäQé$†K#“Je3ÁÐé˜LfS9¤Öm7œNgS¹äèâm6ʤô:WD£ÑœSÚe6?O¨TjU:¤¦ÇcÒ«Tšå"½[qMÆê­–Íg´ZmV¤ºA!`¸Wn5úê?>ŸŠ/­w»åöýµKN—<%Ë
tÄ#‘Œ7?Èda˜\FS-‡ŽÞrY¼æw=L¼Ø?Ù|®cM¥¯Œæ|þ·]¯ØB/:M¦Ÿk$`-–Ûæ÷}?Å"6ü=·I‚ßòy\»:?»'øšŽ?‚.{æv{]¹éàæsCóú¼o’~mîz}^¹žË`n4]ÊÛEìü~P?
âù¼Š8þ=MÎÕï;‚󼦙?d;Û÷ÂŽ\ÿºki ‡º0į9¬E³Íœ>¥&PdN®Ä‘l\ÇDΣN™F/+¯Çʪÿœ¦É²é¾¯:kFLBò[•Åttå €
`P8$
„BaP¸d6ˆDa.÷Š)ŠÅãQ˜äb=qM¦Ø”$ðs9È%QÙ\~:x:$³9¤Öm7œNgS¹äö}8›?Í6;[G–GdRIʽL¦§)©ê¤¶‚nŸÖkUºåv½_°Nª&£9ž§-®!?(=&«/˜Òì7;¥Öíw¼]ç³ÚÝ\®©¹[-–Jù}Y«Ûmø¸»M?ȼärY<¦W-˜37ìº.Üh4&èäB#Š«é}f·]¯ØMð«ìÍ?ϪK¤³ÜÝkÁ6d²ÙNŸOï$ç:]-LžOlz]>§W­×ìv{]¾çw½ßðx|^?'—Íçôz}^¿g·Ýïø|~_?§×í÷ü~_¿ç÷üÿÀÀ?,
ÁKZ€€€
`P8$
„BaP¸d6ˆDbQ8¤V-ŒFcQ¸äv=?HdR9$–M'”JeR¹d¶]/˜LfS9¤Öm7œNgS¸ô
So that's not HELPING. I don't have Portfolio. Thanks for trying to help though. I appreciate it.Well we got a company name...
Do you have any software installed from a company called Accusoft?http://www.accusoft.com/
http://www.accusoft.com/news/pressreleases/050103.asp :
Quote

Northborough, Mass. and Eden Prairie, Minn. – May 1, 2003 – AccuSoft® Corporation, the leading provider of imaging technology, and Jasc Software, Inc., creator of digital imaging and management solutions, announced today that AccuSoft’s industry-leading ImageGear® technology is embedded in the new Jasc® Paint ShopTM Family of products, including Jasc®Paint Shop Pro® and Jasc® Paint Shop Photo AlbumTM. Paint Shop Pro 8, the newest version, began shipping this week.

Also, try to open same file in WORDPAD, instead of Notepad.My sister-in-law recently installed the software I use on my plotter and she is now getting the same files. So that's where they are coming from. SignBlazer. Hopefully they will drive her crazy enough that she will figure out how to shut them down. She has already been looking through the files. Thanks a lot!!
2065.

Solve : code makers?

Answer»

hey im using command prompt, but i WISH to use other programs like C++. but are there downloadable(if its a word) programs like C++?? also what are some greatcheap code/game/site MAKING programs? any help that would be great. thanks
MM
You mean you are using MS-DOS OS or using WINDOWS command prompt?

If you are using Windows, try Visual C++. Visual C++ is a powerful program from Microsoft, but if you choose to download that, I hope you have a download speed that is not under 1MBPS, otherwise, you'd be waiting for the installer to download the files all day.

If you don't like Visual C++, head over to Google and search for "alternatives to visual c++".ok THANK you

2066.

Solve : Http Connection doesn't send data?

Answer»

Hi!
I'm trying to write an application client/server with HTTP protocol, in JAVA. I need:

- client connects to the server,and after that,
- server continuously sends data to the client (as soon as they can be obtained by an other server-side resource !! )

Client-side code is:

HttpURLConnectionis = httpConnection.getInputStream();

ObjectInputStream ois = new ObjectInputStream(is);
String toWrite=null;
do {
toWrite=(String)ois.readObject();
}
while(Thread.currentThread().isAlive());
is.close();

Server-side code (part of method DOGET() of a servlet) is:

ObjectOutputStream os= new ObjectOutputStream (response.getOutputStream());
Signal sig; // Signal is a Java CLASS containing String messages

int i=0;
while (i<10) {
sig = obs.getSignal(); // "obs" is a LinkedBlockingQueue!!!!
os.writeObject(new String(sig.getValue())); // sig.getValue() returns String
}

The problem is that data sent from server arrives to client ALL at the end of the while-cicle, and not one by one!

Istead, by using a code like this:

ObjectOutputStream os= new ObjectOutputStream (response.getOutputStream());
int j=0;
while(true){
os.writeObject(new String("\n SERVER: count"+j));
j++;
}

...data arrives one by one!

I made lots of tries, variously modifying the code..and I noticed that the problem is in using blocking methods
(in fact, the behaviour is same if forcing the current Thread to sleep - eg Thread.sleep(1000) -).

Where's the problem??


Are you saying that if you use a sleep instead of the queue, it still waits til the while LOOP has finished before sending to the client?

I'd recommend manually flushing the stream after each write (os.flush()? not sure of syntax - haven't done java in a very long TIME).

2067.

Solve : how do i delete a file with C++?

Answer»

how do I DELETE a program with C++? or C? Like for example how would i delete file.exe?

THANKS..
Hi S_R_S5

Have you considered visiting the MSDN LIBRARY?

This link should help you delete a file.

2068.

Solve : Combine search and xcopy function in batch file?

Answer»

Hello - Need some help

I've created a batch file to automatically backup a user's profile and data over the network or onto an external drive. The problem I'm having is that often TIMES a person may have outlook data files (.pst) stored in different PLACES in the C: directory. So i wanted to create a command to search for any .pst files on the c drive, and then if it finds any to then use the xcopy command to move those over to the specified folder on the external drive. So far i can get it to find the files USING attrib but cant seem to connect that to the copy function. Here is an example of what i have at the moment:
@echo off
:: variables
set drive=E:\Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /y
set search=attrib /s c:\*.pst

echo ### Backing up email and CONTACTS (MS Outlook)...
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Outlook\Default Outlook Profile.NK2" "%drive%\outlook"
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Signatures" "%drive%\Outlook\Signatures"
%search%


I know this is probably something really simple that I'm missing here, but i would greatly appreciate any help. ThanksThis may help:

Code: [Select]@echo off
:: variables
set drive=E:\Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /y
set search=attrib /s c:\*.pst

echo ### Backing up email and contacts (MS Outlook)...
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Outlook\Default Outlook Profile.NK2" "%drive%\outlook"
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Signatures" "%drive%\Outlook\Signatures"

for /f "tokens=* delims=" %%x in ('dir c:\*.pst /s /b /a') do (
%backupcmd% "%%x" "%drive%\Outlook\..."
)

Replace the three dots with the rest of the actual destination directory.

That worked perfectly. THANKS a lot, really appreciate it.

2069.

Solve : System Information - How can I refresh??

Answer»

I want the code below so that when you press any key it will refresh the information. The code below runs alright in a batch script (when in MS-DOS code), but since changing it into a C++ program it doesn't work. It seems like the "Pause" system command in C++ closes the window when any key is pressed. So how can i make it so if will refresh all the information WITHOUT closing?


Code: [Select]#include <iostream>
using namespace std;
int main()
{
system(":start");
system("color 0a");
system("echo -- --");
system("echo -- (C) Copyright - MT3sh, 2007 (Version. 1.0.0.2) --");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo S-Y-S-T-E-M I-N-F-O-R-M-A-T-I-O-N:");
system("echo --------------------------------------------------------------------------");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo ==========================================================================");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo Time : %time%");
system("echo --------------------------------------------------------------------------");
system("echo Date : %date%");
system("echo --------------------------------------------------------------------------");
system("echo Computer Name : %computername%");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo Memory:\n");
system("mem");
system("echo -- --");
system("echo -- --");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo N-E-T-W-O-R-K I-N-F-O-R-M-A-T-I-O-N:");
system("echo --------------------------------------------------------------------------");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo ==========================================================================");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo ARP:\n");
system("arp -a");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo IPConfig:\n");
system("ipconfig /all");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo NETSTAT:\n");
system("echo -");
system("netstat -e -s");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo To Refresh All Information;");
system("pause");
system("cls");
system("goto start");
}You have not "converted your batch file to a C++ program". You have written a C++ program which shells out 53 separate times, once for each line. This will not work as you seem to think. What your program is doing is equivalent to a person typing 53 individual commands at the prompt, one after the other. The "pause" command will wait for a keypress, but the "goto start" command will fail, obviously, since you can't have labels at the command line, only in real batch files. You COULD have the whole batch file called e.g.

system("mybatch.bat");

You could redirect the output of the batch into a text file and process that file in a C++ program I suppose.

But why bother? You need to learn how to call Windows API functions.



Lol, Contrex I worked it out, and the way I wanted too. THANKS anyway.


Code: [Select]#include <iostream>
using namespace std;

int main()
{
system("color 0a");
system("echo ..........................................................................");
system("echo -- --");
system("echo -- (C) Copyright - MT3sh, 2007 (Version. 1.0.0.2) --");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo S-Y-S-T-E-M I-N-F-O-R-M-A-T-I-O-N:");
system("echo --------------------------------------------------------------------------");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo ==========================================================================");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo Time : %time%");
system("echo --------------------------------------------------------------------------");
system("echo Date : %date%");
system("echo --------------------------------------------------------------------------");
system("echo Computer Name : %computername%");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo Memory:\n");
system("mem");
system("echo -- --");
system("echo -- --");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo N-E-T-W-O-R-K I-N-F-O-R-M-A-T-I-O-N:");
system("echo --------------------------------------------------------------------------");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo ==========================================================================");
system("echo //////////////////////////////////////////////////////////////////////////");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo ARP:\n");
system("arp -a");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo IPConfig:\n");
system("ipconfig /all");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("echo Netstat:\n");
system("echo -");
system("netstat -e -s");
system("echo -");
system("echo --------------------------------------------------------------------------");
system("echo --------------------------------------------------------------------------");
system("echo -");
system("pause");
system("cls");
system("echo -- --");
system("echo To Refresh All Information;");
system("pause");
return main();
}


2070.

Solve : Anti virus Source code?

Answer»

Can any body help me in writing anti VIRUS source CODE ??This is a DUPLICATE POST.

2071.

Solve : how to disable keyboard in winxp using dos commands??

Answer»

ei guys, IM jst a newbie in this SITE..just wana ask question regarding on how to disable keyboard on winxp OS?does anybody knows?plss help
thanks a LOT in advance..Welcome to the CH forums.

Why do you want to disable the keyboard?

Off hand not familiar with a MS-DOS command that would allow you to do this. You can get third party utilities such as the below link that would allow you to do this.

http://www.dirfile.com/clean_n_go.htmI don't know about DOS command, but you may TRY this freebie:
http://www.download32.com/babymouse-and-babyboard-i35500.html

2072.

Solve : DOS batch scripting to identify JAVA version?

Answer»

good DAY. I'm kinda new here. I want to ask if is there a way for a batch (.bat) file to retreive and parse the message of a java command (say "java -version").

then later on identify the type of version it reflected through a nested if STATEMENT? (e.g. if ERRORLEVEL == "1.4.2_12 goto lower).

I would appreciate if somebody could help me out with these.
Thank you very much.
I was able to redirect the STDERR STREAM to a file. For whatever reason, java did not SEEM to OUTPUT to STDOUT.

Code: [Select]@echo off
java -version 2> java.txt
for /f "tokens=3" %%x in ('find /i "java version" java.txt') do (
if %%~x==1.6.0_03 goto label3
if %%~x==1.6.0_02 goto label2
if %%~x==1.6.0_01 goto label1
if %%~x==1.4.2_12 goto label0
)
.
.
.
del java.txt

2073.

Solve : Want to add my utility in Context menu.?

Answer»

I have developed a UTILITY in C which CONVERT the file FORMAT of say type a to say of type B.
I want to add my utility to the WINDOWS context menu which comes on right click on the file which i want to convert. For this what all computer registries i will have to update?Double post.

2074.

Solve : Batch file to play 3,000 songs.?

Answer»

Hello all. I'm new here so GO easy.

I'm putting together a junk computer to play MP3s. Lots of them. My intentions are to push the power button and have all the music in one directory play. Maybe 3,000 songs. Sounds simple.

1. Must start, play all and loop, with no monitor or keyboard after it's setup.
2. If a song (MP3) won't play because of an error, for whatever reason go to next song. Songs will be checked for errors but things happen.
3. Be able to be SHUT down and restarted without problems.

I haven't chosen an operating system yet. I would probably go with Win98 because it's smaller than Win2k or XP. I know Winamp and other programs allow playlists and that's a possibility. I do like a very small stand alone MP3 player called "Billy" http://www.sheepfriends.com/?page=billy This computer will be accessible through a wireless network connection.

A batch file could be used but I'm stumped on the "play all" and "error" part. Shutting down shouldn't be a problem as long as I "don't allow safe MODE after bad shut down" in TweakIU.

This is an old AMD 300mHZ computer, 20GB HD with an amplified sound card. Any suggestions.

Oh yea, this computer will output to a homebrew one WATT AM transmitter to play oldies to the neighborhood on weekends. At present, I use a CD player capable of playing MP3s but the disks only hold around 225 songs, 6-8hrs.

-Mike ToonCreate a playlist with all your songs and save it somewhere on your hard drive. Create a batch file that opens that file and put the batch in startup. Windows Media Player automatically skips bad songs and it remembers if the repeat button was selected on last run and I imagine that the other players do as well.Hmmmmmmmmm. How do you create the list?

Quote from: Clippy on October 10, 2007, 12:04:36 AM

Hmmmmmmmmm. How do you create the list?

As contrex said, "up and up goes the post count"...... If you want to say something and raise your post count (which you shouldn't want to), please try to say something useful and contribute to this community; i.e. don't dig up old threads with questions that have no importance to the OP.

And as for creating the list, you can just select all the music, right-click and go Add to Playlist.The problem is solved. I downloaded a free program that plays ALL music files in the directory AND all sub directories, randomally. http://www.shareup.com/OneClickPlay-download-2768.html

I put this in my Win98 startup directory and it plays all 3,000. Don't even need to have the monitor on. When I get done, I turn the power off and since I have that option checked not to run scandisk on a bad shut down.........there is no problems.

Thanks for the suggestions. congrats!
I actually started a similar project with an old laptop. I've taken it apart and am transforming it into a digital picture frame. The plan is to use Zenwalk (Linux distro) and MythTV and MythGallery to display my pictures randomly from a predefined directory. It's starting to be a really fun project. Quote from: michaewlewis on October 18, 2007, 10:48:28 AM
The plan is to use Zenwalk (Linux distro) and MythTV and MythGallery to display my pictures randomly from a predefined directory. It's starting to be a really fun project.
Sounds interesting. Any pictures yet?I've got it all planned out, I just have to build the box to sit behind the picture frame. I had to ditch mythtv because the processor is too slow.... So I'm just using the slideshow program that came with zenwalk (gqslideshow). It doesn't have any transition effects, but still WORKS pretty good.
2075.

Solve : Want to add my utility in windows context menu.?

Answer»

I have developed a UTILITY in C which CONVERT the FILE format of say type a to say of type B.
I want to add my utility to the windows CONTEXT menu which comes on right click on the file which i want to convert. For this what all computer registries i will have to update?http://www.jfitz.com/tips/rclick_custom.html

2076.

Solve : VB Express Copy??

Answer»

Okay I am still NEW to VB, ive had it but don't work with it much. I am working on my own utility though and I need a few things.

1. In batch, i have created a file that will use Wget and will save a specified HTML documents and source code from the internet. How can I do this (preferably withough Wget) in Basic?
2. Also how would I build the TextBox to specify the website to COPY and the output folder. LIKE what code do I use for this?i want to know where the system programs are kept those have to be run at the time when windows displays its logon screen to accept a user's password.....

can i run an app during this time?Kedar. Welcome to the CH forums.

Please do not hijack some other member thread. Start your own thread for your query in the Windows forum.

Thanks

2077.

Solve : would flash application of windows platform will work on linux?

Answer»

hi all,

I have windows OPERATING system and FLASH professional software LOADED on it.

one of my friend want a flash movie to be made. but the problem is the operating system he is using is linux.

so, my question is , if I will make a flash movie using my flash software(loaded on windows xp), will the flash movie will work on linux.

if I have to do some CHANGES,please tell me.

thanks to u all.I don't believe that should be a problem. Your friend just needs to make SURE he got the Adobe Flash Player installed.Thank you very much for the information DEERPARK.

you have solved my problem.

thanks.

2078.

Solve : SQL: Counting duplicates within combinations of groups?

Answer»

Hi All,

I have a database table which contains approx 20,000 records in the following format:
Code: [Select]DISK Track
=====================
CD1 Unique to CD1
CD1 On all three
CD1 On CD1 and CD2
CD1 On CD1 and CD3

CD2 Unique to CD2
CD2 On all three
CD2 On CD1 and CD2
CD2 On CD2 and CD3
CD2 Another on CD2 and CD3

CD3 Unique to CD3
CD3 On all three
CD3 On CD1 and CD3
CD3 On CD2 and CD3
CD3 Another on CD2 and CD3

Is it POSSIBLE to create an SQL statement to list all combinations of two disks, for example:
Code: [Select]DiskA DiskB
==============
CD1 CD2
CD1 CD3
CD2 CD3

Is it possible to create an SQL statement to list "counts of duplicates" WITHIN (or between) each combination of two disks, for example:
Code: [Select]DiskA DiskB CountOfDuplicatedTracks
=====================================
CD1 CD2 2
CD1 CD3 2
CD2 CD3 3

Thank you for your help,
Best REGARDS,
JAMES

P.S. This is a 'real question', with a real table, and not just a 'homework question'Hi All,

I have managed to solve this problem, (or atleast part 2 of the problem which is what I was really interested in).

Just in case anyone else is interested, my solution uses two SQL statements...

Make_B:
SELECT CD AS CD_B, Track AS Track_B FROM MyTable;

Joiner:
SELECT CD, CD_B, COUNT(Track) AS CountOfDuplicates
FROM MyTable INNER JOIN Make_B ON MyTable.Track=Make_B.Track_B
GROUP BY CD, CD_B HAVING CD_B>CD;

Regards,
James

2079.

Solve : Website login?

Answer»

Hi guys,

ive just MOVED into some NEW accomodation, and its got some sort've outside-managed isp running the network. Anyway, in order to get on the internet, you have to enter a username/password, and this is starting to annoy me when i have to do this every time!

So under xp, and PREFERABLY in a batch file, how would i be able to SAY open up firefox, navigate to the login page, enter the username/password and submit the form?

bit've a big question i know... i have some basic experience with batch FILES, but anything you can help me with would be great!!

cheers,

pete. Can't you just stay logged in? or is there a timeout?

2080.

Solve : VB code?

Answer»

Say I have a message box with two options: YES or NO.
What codes would I use that in the EVENT that I click YES, one message box comes up, and if I click NO, a different message box comes up? This is for use in VB6, but I was also wondering if the same codes could be used in NOTEPAD.
Thanks.Each the Yes and No buttons will return different return codes that you can test for:

Code: [Select]if vbYes Then msgbox("You pressed YES")
if vbNo Then msgbox("You pressed No")

Quote

This is for use in VB6, but I was also wondering if the same codes could be used in Notepad

Used how and for what purpose?

For the message box:

DIM Result as VBMsgBoxResult
Result = Msgbox("Original","Your original Messagebox",vbYesNo)
If Result = vbYes then
'Yes was pressed.
Else
'No was pressed
end if



Last time I checked notepad was a text editor, so I'll assume you MEAN batch files. although technically you could be working with VBScript or god knows what, making this question a bit broad in scope. If it was Batch, then you'll need a stub program of some kind so SHOW the message, I don't know of a command to do so.
2081.

Solve : MS-SQL definitions?

Answer»

Hello,

This is just a general QUESTION concerning the programatic background functionality of MS-SQL:

Does MS-SQL require a Windows 2003 Server, or can an administration software program also be ran on a PC server with good performace?

The reason why I am asking is because the software firm from which we bought the order processing software package pushed us into getting a MS-SQL Server, instead of using the pre-bought high-performance PC we especially got for this job. So they profited from us buying the software aswell as a new server.

The software does use MS-SQL database, but can a database generally not be executed the same way with a Windows XP Pro operating system? Or even with another server operating system on the high-performance pc?

I COULD think that the answer lies in that Windows Server 2003 is a 64bit o/s ? But does a PC not have 64bit operation systems?

You can run sql server on an xp machine. And it would probably run very well. The reason to use MS Server 2003, is the security and management enhancements. It is also a much more stable os, requiring less attention.
Another option is to install server 2003 on your suped up pc. There's nothing wrong with running a server on a desktop motherboard. Server motherboards will usually just give you the option of ECC memory, scsi, raid, and pci-x slots, which can all be very beneficial to a server environment, but not entirely necessary.Thankyou, interesting But does it need to be a 64bit XP version? If not, was is the difference to that with a standard 32bit o/s? I SUPPOSE MAINLY just for large enterprises - we are only a small firm of approx. 5 people with minor server requirements...They make sql server for 32- and 64-bit processors
It may also interest you that microsoft offers a free version of sql called sql server express...... I'm not sure what the differences are, but you may want to check it out.

2082.

Solve : Another Access Problem ..?

Answer»

Ok, hopefully this one will be MUCH easier to answer!

I have two listboxes in my Access 2000 Database. One of them contains values (The name of food products) from a table, tblStock. The other contains nothing and is defined as a VALUE List.

I'd like it so that when you press a button, the selected value from the ListBox with Products in is copied to the empty ListBox.

Note: The list box with products in is called List14, the empty list box is called List16.

Here's the code i'm using at the moment;

Code: [Select]Private Sub Command18_Click()
List16.AddItem (List14.Value)
End Sub

It just doesn't seem to be WORKING any ideas? Thanks!This may work:

Code: [Select]List16.AddItem(List14.SelectedItem)

Not sure that a command_click event is the most appropriate. Is there not a event raised when the selection is made?





This one won't work either. It comes up with the error message, "method or data member not FOUND" and it highlights the .SelectedItem element. I can't work out what the extension is for the actual values in the first Listbox. I can ADD ListIndex of the selected product into the second ListBox, but not the actual text itself. .Text doesn't even seem to exist on Access 2000. Code: [Select]List16.AddItem(List14.Selected)

Quote

I can't work out what the extension is for the actual values in the first Listbox. I can Add ListIndex of the selected product into the second ListBox, but not the actual text itself

When writing code, after typing an object name followed by a dot, do you not get a list of properties and methods appearing in a popup box? You may have to play around with these. Listboxes have no Text property but do have a Value and a ItemData property.

I feel as though I've tried all of them. ItemsSelected, Select, Value, ListIndex, List, Column. I'll try some others but It feels hopeless Not too thrilled with this SOLUTION but it worked. I didn't find out how to reference field names in Access, so I took the easy way out and used the table column index

Code: [Select]Private Sub List14_DblClick(Cancel As Integer)
List16.AddItem (List14.Column(1))
End Sub

You may have to play around with the index depending on your table layout. Note that the index is zero based. It's not very pretty but it's serviceable.



The _DblClick event seemed more logical to me...but feel free to change it.
2083.

Solve : C++ diffrent background and diffrent window?

Answer»

I'm pretty comfortable with iostream, i'm curious if there is a way to change the background color and maybe make a new BOX type window in C++?

thank you.
S_R_SDo you mean that you want to change the color of OUTPUT (CONSOLE) window?
If so you can use:

setbkcolor(COLOR);
It works in C but I am not sure about c++.
also write #include on top.

Check out if it works.
Please LET me know the result.

2084.

Solve : 3D arrays?

Answer»

Hello,
I have been working with C for some time now. Passing 2 dimensional arrays to FUNCTIONS is QUIET simple. But I was wondering how MULTI dimensional arrays are passed to function. Till now I have been declaring three dimensional arrays as global.
But that is not an effective method.
kindly guide me.

Thank you very much.

2085.

Solve : Java help.?

Answer»

I have a friend who learn Java in school and he asked me some stuff about it.
Normally I could answer them without knowing anything about java.
Just from my other programming knowledge.
But now it gets to complicated. And I do want to help him.
And I'm quiet interested in Java.
Sow my question is:
what do I need to be able to wright and test the self written porgs?
Is there any good tortural?

Thanks in advance

Jonas You need the Java Development Kit (JDK). Get the most recent version off ..

http://java.sun.com/javase/downloads/index.jsp

Get a java IDE, although not necessary, I recommend JCreator ..

http://jcreator.com/

First download the JDK, then download JCreator and open it.
After you open it, create a project.
Copy the program that you want into Jcreator, compile them, and then run it.

If you do not know any java, then read the TUTORIALS on ..

http://java.sun.com/docs/books/tutorial/

Ask me if you have any problems or need help with anything.
Thank you JavaMaster I will install that program and read the tutorials.
But I'm sure I will have some questions.
And it is nice to hear you want help me.

Jonas He told me that I already had it and asked me if I wanted to reïnstall it.
So I did that but I'm unable to find the program.
Where should it be located?
I checked all programs, C:\program files\java But I couldn't find any link to JDK.

Thanks in advance
Jonas hello jonas
well if u have already INSTALLED java, then go in ur C DRIVE, u must be havin a FOLDER named j2sdk1.4 or j2sdk1.5 . for convenience rename it if u like, as this name is too long. suppose yo rename it to jdk1.4
then to write a java program, go on the command prompt and type cd\
now type:
cd jdk1.4 {to enter it}
cd bin
edit abc.java {to write a java file named abc}
save it and exit
now on command prompt type:
javac abc.java {to compile ur program}
java abc {to run ur program}

and if u want to check the note pad file of ur program then go in C drive -> jdk1.4 ->
bin, and u will find it.
i hope it helped.
Thks that was what I was looking for.
But I do have a problem:
when I try to compile it it says 9 errors while it works perfectly at my friends comp.
But he has a special program. He uses trough a VPN connection with his school.
It gives me errors that doesn't make any sense

Is there any thing wrong with the prog he wrote? (I don't think so but still)

Jonas

Here is the program:
Code: [Select]public void Ster1 (int n)
{
int x;
int index;
for (x = 1; x <= n; x++)
{
for (index = 1; index <= x ; index++)
{
System.out.print ("*");
}
System.out.print (" ");
}
}
hi jonas,
alwz remember that any function in java has to be declared within a class .
also there has to be a main function in your program. it is declared as follows:
class abc
{
public static void main(String str[])
{
---------------
}
}
public key word is used to make it accessible to all.
static is used so that, we can USE it without creating its object.
void - its return type.
now, if you wish to write your program, there are three ways:
1> write the code in main function itself.
2> write the code in the same class. but dont forget to declare the new function also as static, bcoz a static function can call only a static function in the same class.
3> write the code in another class and make the object of that class in main function.

here is the code for the last option:


class star
{
public static void main(String a[])
{
int n=Integer.parseInt(a[0]);
star1 a1=new star1();
a1.ster1(n);
}
}
class star1
{
void ster1(int n)
{
int x;
int index;
for(x=1;x<=n;x++)
{
for(index=1;index<=x;index++)
{
System.out.print("*");
}
System.out.print(" ");
}
}
}

i hope it helped .

2086.

Solve : regarding VBScript please help?

Answer»

hello,
i want to make a window using VBSCRIPT which asks password from the user.
i have used 'inputbox' for that. but it checks for only one predefined password.
how can i, make a provision, that any one can register, and then enter his password in the window create above.
how can i make, my program remember the passwords and user names of all the users?

please help me out. its really urgent. please please....... best way would be to set up a DATABASE with all the usernames and passwords, but you could use a text file if you don't care too much about SECURITY
when the user hits ok, run the input through a for loop so it can locate the USERNAME in the database, once the username has been found, check if the password is right with an if statement.
Quote from: Tripti on October 31, 2007, 07:40:24 AM

hello,
i want to make a window using VBScript which asks password from the user.
i have used 'inputbox' for that. but it checks for only one predefined password.
how can i, make a provision, that any one can register, and then enter his password in the window create above.
how can i make, my program remember the passwords and user names of all the users?

please help me out. its really urgent. please please.......
although i wouldn't recommend such implementation of a password system, however, you can check here for some guide on how to implement it.thanks a lot dear.
but i still dont understand how to implement and use a database.
can you please send me a link to understand, how to do database connectivity.
thank you in advance You're going to have to get a book..... sorry. Databases aren't really all that easy to work with, especially for what you're needing to do. A few good places to START are at the MSDN library on the Microsoft website. You can browse through their online catalog or you can opt to buy books too.
Find a book that deals with Visual Basic and MS SQL
2087.

Solve : wanna-be programmer looking for help :P?

Answer»

there are so many programming languages..C, C++, C#..JAVA..etc and I was wanting to know which ones are the most useful? the programming course I want to take teaches C# and Java, are these two the most widely used languages in programming? I'm also going to buy some books to begin with before I buy the courses.C and C++ can do the most. If I were to guess, I'd say that java, C#, and visual basic were written with a lot of C/C++ programming and some assembly.
If you want to language that is the most versatile, go with C.
With that said, C isn't a very simple language. It's not usually recommended as a beginning language. If you want a smaller, easier start, try perl, visual basic, or java. After you've mastered one of those, C will be a lot easier to learn.I would agree that C and C++ are widely use.

But for a beginner I would recommand Java. This langage is an object oriented modeling language that is near to C++ in a few point without the concept of pointer (only using reference). Furthermore, there is a lot of standardised libraries that does a lot of stuff for you (string manipulation, object stask and linked list, GRAPHICAL interface).

In fact C is a simple langague but it still a procedural one (not object oriented) it is then more difficult to design a long-term reusable and evolutive software.

but that's my opinion, for my part I am coding with C++ (at my job).
yp

note that if you go with an object oriented language it could be a good idea to look at UML (Unified Modeling Language)
ohh okay that helps me out a lot! thanks!!!! there is a beginner programmer's book I want to buy that teaches a very simple language called qbasic, and I think I'll try it out. I'd recommend visual basic over qbasic. It's a more MODERN language and you can do more with it. With qbasic, you're stuck in the command line.Okay, thanks again for the info!!! I'll look for beginner books that teach visual basic instead of qbasic At my high SCHOOL we're learning Java. We started by learning the concepts of object oriented programming by using a program called "ALICE" developed by Carnegie-Mellon University.

2088.

Solve : How to see video conference in vb.net 2005?

Answer»

Hi,

I want to do webcam chat and video CONFERENCING in vb.net. I don't want to use third PARTY ACTIVEX controls.

Can anyone have the idea of how to do it.

thanks

2089.

Solve : windows.exe.gui?

Answer»

would LIKE to know what TYPE of FILE is a "windows.exe.mui", and how do you create such files.The below page should have all you WANT to know about MUI's and more.

http://www.microsoft.com/globaldev/reference/muizone.mspx


2090.

Solve : Batch file help, dont understand?

Answer»

jhIf SOMEONE will IM me and can HELP me/do this I will paypal them some money. I need this today.Why don't you just make a proper help file? Its FREE of Mircosoft or there are other help file writers.

2091.

Solve : Port Access for On-line Games, Need help?

Answer»

My internet is being fed through my school and my school is a goverment FUNDED school.
Until resently everyone has been able to enjoy the pleasures of on-line gaming.
From everything I have GATHERED our school has installed new cameras using our network
and for fear of Hacking into the Camera's has severly limited our ports access.
No ONE can PLAY any on-line game. Can anyone help about how we might be able to access our games online,
Games that fail to connect
Guild Wars
WarCraft wow
HellGateLondon
2Moons
9Dragons
Flyff
Rakion.
Please help. We have an avid community of on-line gamers and we can'r purchase our own lines.
double post

we know you NEED help but can you please keep it one forum?

2092.

Solve : operating systems, programming languages?

Answer»

I have to distinguish between OPERATING systems, programming LANGUAGES, programs, and applications.


then identify common computer software, including office automation.

please help me out to get a better understanding I am lost in-transit

Thank you so muchI would imagine that this is for homework.
What I would SUGGEST is that you start with Google.
Typing "define:" without the QUOTES, and then the phrase you want, will get you started.
Wikipedia.org is ANOTHER useful resource, and finally howstuffworks.com may help.

2093.

Solve : Batch File Help Needed?

Answer»

Hi,

I have a script that dynamically creates another BAT script that then performs some xcopy commands. However it does not include the directories in the xcopy bat script unless they have a sub dir. I need it to include them even if they DONT have sub dir as long as they are not on the 'exclude' list.

Thanks for all help as I'm STUMPED as to why this is happening.



*************Current Directories that exist:**********************

D:\Hyperion\essbase\app\BU_CRTT\Crtt01\
D:\Hyperion\essbase\app\CapExp\Capital\
D:\Hyperion\essbase\app\CORPGA\Incstmt\
D:\Hyperion\essbase\app\testplan\

Note: In my current results it does not include a line for 'testplan' as it does not have another dir under it.


******** Current Batch athat creates Current Output********************


set ess_app_dir_source=D:\Hyperion\Essbase\App
set outFile_CopyAppDir=%~dp0CopyAppDir.bat
set excludeDirsAppCopy=$DM_APP$,migrationutils,ESSHFM,z_test


@echo off

setlocal

echo REM Begin to copy 'App' dir to backup location > %outFile_CopyAppDir%

pushd "%ess_app_dir_source%"

for /f "tokens=*" %%a in ('dir /b /ad 2^>NUL') do call :PROCDIR "%%a"

popd

if not exist "%outFile_CopyAppDir%" echo Could not find anything to process&goto :EOF

echo Processing writing to %outFile_CopyAppDir%

goto :EOF

:PROCDIR

for %%a in (%excludeDirsAppCopy%) do if /i "%%a"=="%~1" goto :EOF

pushd "%~1"

for /f "tokens=*" %%a in ('dir /b /ad 2^>NUL') do call :PROCESS "%%a" "%~1"

popd

goto :EOF

:PROCESS

for %%a in (%excludeDirsAppCopy%) do if /i "%%a"=="%~1" goto :EOF

echo xcopy "%ess_app_dir_source%\%~2" "%ess_app_dir_bkup%\%~2" /Y /S /E /i >> "%outFile_CopyAppDir%"

goto :EOF


**************Current Output*****************************:

REM Begin to copy 'App' dir to backup location
xcopy "D:\Hyperion\essbase\app\BU_CRTT" "E:\EssbaseBackup\Daily\App\BU_CRTT" /Y /S /E /i
xcopy "D:\Hyperion\essbase\app\CapExp" "E:\EssbaseBackup\Daily\App\CapExp" /Y /S /E /i
xcopy "D:\Hyperion\essbase\app\CORPGA" "E:\EssbaseBackup\Daily\App\CORPGA" /Y /S /E /i

***************Desired Output**************************

REM Begin to copy 'App' dir to backup location
xcopy "D:\Hyperion\essbase\app\BU_CRTT" "E:\EssbaseBackup\Daily\App\BU_CRTT" /Y /S /E /i
xcopy "D:\Hyperion\essbase\app\CapExp" "E:\EssbaseBackup\Daily\App\CapExp" /Y /S /E /i
xcopy "D:\Hyperion\essbase\app\CORPGA" "E:\EssbaseBackup\Daily\App\CORPGA" /Y /S /E /i
xcopy "D:\Hyperion\essbase\app\testplan" "E:\EssbaseBackup\Daily\App\testplan" /Y /S /E /i

2094.

Solve : QBASIC COM Questions?

Answer»

Okay,
LETS pretend that I had a COM port on my computer. Now lets pretend I have some sort of COM cable (who knows that kind exactly)
Is it possible that I could build a QBASIC program that will tell me when an electrical connection is made in a cable?
For example, if the COM cable I had an end that looked LIKE a headphone plug with only two separate parts (wires) is it possible to make a program that will monitor the input, and tell me when something comes in through it? (If I took a piece of foil, and connected the two connections)

(A bit of a strange question)

I know that something similar can be accomplished, since my UNCLE had a QBASIC program that would tell you how long it took a piece of wood to run through a saw. A start time was created, and once the log set the trigger and the time would stop. QBasic 4.5 will certainly do what you want but programming the ports in QB 4.5 is difficult in anything other than real Dos mode (not tried DOSBox).

VM.How does one start accomplishing such a program (using the OPEN COM STATEMENT)?Yes, that's one of the commands which are used. Then the port must be polled while waiting for input (INP) and when that input is detected some action is taken.

I SUGGEST you find a tutorial which suits your purpose. You may find a suitable one here or at one the many other QB tutorials on the WWW. There are also dedicated QB forums.

Good luck

VM.A port programming tutorial written in QB is here. Download Q-Basics.zip, chapter 11 contains the tut.

If you want to try QB port programming in XP then the PortTalk driver mentioned in the above is here.

VM.

2095.

Solve : Any c++ compiler for windows x64????

Answer»

I'm USING an x64 machine and I want to WRITE native x64 WINDOWS programs.

2096.

Solve : Which should I learn? java or C++?

Answer»

I know both alittle but i'm better with C++.
which is more powerful and better for making good programs?

thanks,
S_R_SIt's up to you to decide. C++ and Java are both good programming languages.
Even BASIC is good. Old, but still good.

Research each language and see which one is right for you.Yeah, both are equally good.
It depends on the type of programming you want to do.
For web applications like APPLET and servlet java is best.
On the other hand, if you want to play with pointers and do other SIMPLE tasks c++ is best.Which PROGRAMING language is USED in most programs like virus scans, solitaire, notepad ect?
is that C++ or some random programing language?Quote from: S_R_S5 on December 20, 2007, 11:50:00 PM

Which programing language is used in most programs like virus scans, solitaire, notepad ect?
is that C++ or some random programing language?

C++, C# and VB are best for those sort of applications.It could also be Assembly, Python, C to NAME a few.http://en.wikipedia.org/wiki/List_of_programming_languages
2097.

Solve : I want to know...?

Answer»

I want to know ..hehe ..I am learning a little bit of python program...and I have been WONDERING ...waht is the USE of python program? Your question is a bit VAGUE, but I'm ASSUMING you want to know what Python can be used for. So here's a Wikipedia article on NOTABLE software that is written in (or uses) Python.
http://en.wikipedia.org/wiki/Python_softwarehoho....thx

2098.

Solve : C, C++, C# - Which One??

Answer»

I just began programming in C++ and just found out about C#. I was thinking it would be better to IGNORE C++ and start C# since it's more modern, but I don't want to jump ahead until I get a educated opinion. So what would you guys recommend, C, C++ or C#?


Thanks.Quote from: jjbtcp on November 05, 2007, 02:48:34 AM

I just began programming in C++ [...]

You just began programming or C++? They are distinct.
C# is the Microsoft implementation and "upgrade" of C++ (and indeed is more modern, more "present", more "use it now"). C and C++ are ok, and they are used extensively under Linux/Unix. You will not find there any "NATIVE" C# projects . C# is only on Microsoft platforms (that's Windows). C/C++ are found in many-many places.

C# competes with Sun's Java.Depending on what type of programs, drivers, etc. you're planning on doing in the future can also help determine what you should learn first. Personally I'd start with C++ unless you're planning on doing more driver / hardware interface projects in which case I'd suggest C first.

C# isn't really an upgrade of C/C++, or the MS implementation. The MS implementation of C++ is Microsoft Visual C++.
C# has nowhere near the power of C/C++. It is loosely compiled just like VBScript and Java. You can actually uncompile C# into VB and vice versa. That might be handy if you're trying to figure out what the differences are between C# and VB, but being so loosely compiled can slow down the program.

If you're after power, go with C/C++. If you're after simplicity, TRY C#.
I think I'll go with C++, although I think it would be very INTERESTING to learn how to Interface with Hardware, Would it still work out alright if I learned C++ first and C later if I NEED to?C and C++ are very similar languages. C++ adds references and classes, and some other things, which are very handy.
2099.

Solve : Programming languages?

Answer»

I want to KNOW which language is the most popular. I am using c++ now.I'm using C++ too, and BATCH Scripting.Currently I am using C++ and VISUAL BASIC .NET in my classes at school. Earlier in my career as a student I used Java as well.i am currently using C and java. they are the most popular ones in our college.

2100.

Solve : SQL In Access?

Answer»

I've been trying to find a solution to this but it's a pretty tricky thing to find a standard code for. It's not the most complex of problems though, so hopefully someone can help.

I have a table in Access which is for Ordering from a shop. I have a field named TotalCost which is to be calculated using a query, so that the Quantity in the Order Table is multiplied by the cost in the Product Table.

From what I gather, I can't store the result of this calculation back into the TotalCost field. It also seems that neither Update Queries nor Append Queries work. It also won't allow me to MAKE the TotalCost a lookup field.

I presume the method of getting the result of the calculation in the query to the TotalCost field is through SQL in the Query ... but I have no idea how I'd go about this. Any help would be APPRECIATED. Thanks!Seems that if the database is normalized, there will be a field common to both the OrderTable and the ProductTable. Assuming that the TotalCost field is in the OrderTable, you should be able to Set OrderTable.TotalCost = OrderTable.Quantity * ProductTable.Cost

Assuming the common field is something like ItemNumber, you would need to join the two tables on this field:

where OrderTable.ItemNumber = ProductTable.ItemNumber

Note: the two field names from each table need not be identically named, just contain the same data.

That said, it is not recommended that calculated fields be stored in the database. If either Quantity or Cost were to change, the TotalCost field would be in error.



You're actually RIGHT about the Total Cost thing. I see your point about the Quantity and Cost changes entirely. I do, however, have another query.

This time, what i'm trying to do is use VBA in a Form. I have a ListBox, and what I'd like to do is display all Product Values from tblStock which have a STOCK Level of 0 or less than 0. I'm not entirely sure what kind of SQL code I should be using here? Thanks!Not knowing the all the particulars, this is just a general method you might want to consider.

This SQL statement should produce a recordset:
Code: [Select]Select value From tblStock Where StockLevel =< 0

After that it should be a simple matter to create a loop for reading the recordset and loading the listbox.

Code: [Select]rs.movefirst
do until rs.eof
lstBox.Add(value)
loop

Note: change value in the SQL statement and the recordset loop to the field you want in the listbox.



PS. rs is an arbitrary name I gave to the recordset.Aha! Right, now I understand. I've entered this code,

Code: [Select]Dim rs As Recordset

Private Sub List8_BeforeUpdate(Cancel As Integer)
RunCmd.SQL ("Select Product From tblStock Where StockLevel =< 0")
rs.MoveFirst
Do Until rs.EOF
List8.AddItem (Product)
Loop
End Sub

But the problem is I now come up with a Runtime Error 424, and it says "Object Required"? Also, I'm usinf Access 2000 if that's of any relevance. List8.Add didn't work and the only other one on the list was .AddItem, but I presumed there wasn't much difference?

Thanks though!Yeah, you're right, Add should have been AddItem.

About the object required error. What is RunCmd defined as? and where did the actual error appear?

Normally I just use the open method on the recordset and pass along the sql, connection string, and CURSOR flags: rs.open "sql data", connectionstring



At the moment, the error comes up when I click on the list Box. With regards to RunCMD, I haven't even defined it :-/ I've seen it on other SQL codes so thought that was the right thing to put in. Sorry, i'm OK at regular coding but no good at VBA or SQL!Don't know if this will work within Access, but you might use it as a guide:

Code: [Select]Const adOpenStatic = 3
Const adLockReadOnly = 1

Dim rs As ADODB.Recordset
Dim cn As ADODB.Connection
Dim SQL as String

Set rs = New ADODB.Recordset
Set cn = New ADODB.Connection
SQL = "Select Product From tblStock Where StockLevel =< 0"
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=fullpathtoyourdatabase"

Private Sub List8_BeforeUpdate(Cancel As Integer)
rs.Open SQL, cn, adOpenStatic, adLockReadOnly
rs.MoveFirst
Do Until rs.EOF
List8.AddItem (Product)
Loop
rs.Close
cn.Close
End Sub

Make sure you replace fullpathtoyourdatabase with the appropriate data.

Tried to cover everything in a small space. I'm not sure how much Access predefines for the user, so there may be more code than required.

Crumbs, I tried but I couldn't get it to work, sorry - it looks like the right type of code but my amateur expertise brings it down.

I have however stumbled across another way of doing this. One method is just placing a query which says all the stock levels which have less than 0 and then you add that to a form. The more interesting concept is this.

When you use a Form Wizard, if I make my Stock Table the thing it uses, and then open the form in Design View, it pre-determines the fields of the Stock Table. I can then do something like this ~

If StockLevel <= 0 Then List1.AddItem (Product)

The problem is not even that works Any ideas?When I looked at Access last night I realized you don't have to write any code! First design a query (use the wizard) to select records where StockLevel =< 0. Design your form with a listbox making sure to click: "I want the list box to lookup the values in a table or query". On the next screen, choose the query you designed as the data source for the listbox.

I'm still shell shocked at how simple this was, it was the ultimate KISS That is a simple way of doing it! Thanks. I seem to be finding alot of easy ways out today with this database. I've been struggling with a validation code in a form and I realised that the problem I've had through this entire thread is because I need fields to be contained in objects like that List Box, within the form. It works so much easier (I need coding somewhere in this database for my CPT Project marks ) But still, that Qry makes things tons easier, Thanks!