rproffitt 2,701 https://5calls.org Moderator

Your code paste failed. However I'd look at prior examples found with:
https://duckduckgo.com/?q=cimage+c%2B%2B+example

Dervish1 commented: Thanks to composing the question to post here, I found a solution: rewrote it by changing the type of genericImage to cImage pointer, and it worked. +3
rproffitt 2,701 https://5calls.org Moderator

This sounds as if the firewall port work is not done.

Remember that the following is only for testing to see if it's your firewall settings (or port forwarding.) Place this server's LAN IP into the routers DMZ entry then test again. Remove from the DMZ after the test and report back here.

nalb4242 commented: Is there another way to test with to find out what is the problem ? +0
rproffitt 2,701 https://5calls.org Moderator

I'll take a swing here with https://alternativeto.net/software/mermaid/ which you can dig through and see if any come close.

pritaeas commented: Nice! +16
rproffitt 2,701 https://5calls.org Moderator

I hope you can supply images of the BIOS sub menus so I or others can see if the setting is there. I know a lot of folk that want "exact" matches on text so you're not unique here. All it means is we'll have to see whats' in the sub-menus.

I'll use the model as "T500 2241" but there is no document found by me that shows the BIOS menu contents. It's time for you to look in the submenus and if they are foreign to you, share images so we can point out which setting.

If there is no virtual or other VT-x setting then it's time to look for a BIOS update. It's not possible for me to give you a direct link or a step by step. My rule on BIOS updates is simple. I never write how. I only write to follow the maker's instruction since my instruction will become dates over time and I don't want to have to find all the times I wrote about this and correct them. So where is that BIOS? Read STEALTHTH's reply at
https://forums.lenovo.com/t5/ThinkPad-T400-T500-and-newer-T-series-Laptops/Can-not-find-my-models/m-p/127160?page=1#127367

rproffitt 2,701 https://5calls.org Moderator

I see this has been marked as solved. Please add the solution for us to learn with you.

rproffitt 2,701 https://5calls.org Moderator

I read your DW profile and your web site. It appears you are the expert here and should be writing a tutorial for us.

Dudhkumar commented: Thanks . +0
rproffitt 2,701 https://5calls.org Moderator

I mentioned two issues. Be sure to read the link I gave and then tell me what you didn't understand.

nalb4242 commented: ii have another question is it possible to host an asp net web app (.net framework) using xampp server after connect the website to mysql database ? +0
rproffitt 2,701 https://5calls.org Moderator

https://www.iis.net/community/files/IISManager/RC0/IISManagerRC0Readme.htm doesn't sound promising as Windows 10 is not supported.

Given that this was End Of Life over a year ago, I'd look at something current or move forward to something current.

nalb4242 commented: Sorry but i don't realy understand what do you mean ? +0
rproffitt 2,701 https://5calls.org Moderator

The usual.

  1. Test with an external display.
  2. Do the LCD FLASHLIGHT TEST (see google on how.)
  3. Always supply the full model number, age and how many feet of water was submerged in (tell the story.)
dangbach commented: Thank you, I'll try. +0
rproffitt 2,701 https://5calls.org Moderator

Where's the "Reusable Code Snippet"?

When you use this category you supply the code.

rproffitt 2,701 https://5calls.org Moderator

Line 5 has a small error.

Try System.out.println(srv);

rproffitt 2,701 https://5calls.org Moderator

Why did you change line 23?

Mine: var x = document.getElementById("mySelect").options[document.getElementById("mySelect").selectedIndex].text;

Yours: var x = document.getElementById("mySelect").parentElement.parentElement.nodeName;

NOTE! If you change the object type, I consider this a NEW QUESTION!!!

r4ds commented: Solved, I use console.log out script ahhaha. +0
rproffitt 2,701 https://5calls.org Moderator

I re-tested my example at the online page https://www.w3schools.com/js/tryit.asp?filename=tryjs_ifthen

Copy paste my example and I get an Apple.

rproffitt 2,701 https://5calls.org Moderator

Example follows of how to get the ALGARRABO but in this case fruit.

<!DOCTYPE html>
<html>
<body>

<form>
  Select your favorite fruit:
  <select id="mySelect">
    <option value="apple">Apple</option>
    <option value="orange">Orange</option>
    <option value="pineapple">Pineapple</option>
    <option value="banana">Banana</option>
  </select>
</form>

<p>Click the button to return the value of the selected fruit.</p>

<button type="button" onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function myFunction() {
  var x = document.getElementById("mySelect").options[document.getElementById("mySelect").selectedIndex].text;
  document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

What you are asking for appears to be summed up in this line:

var x = document.getElementById("mySelect").options[document.getElementById("mySelect").selectedIndex].text;

Alter the code to match your object names.

rproffitt 2,701 https://5calls.org Moderator

As this is homework, be sure to show your work as noted in the rules.

  • Do provide evidence of having done some work yourself if posting questions from school or work assignments
Shahira_1 commented: Sir your Gmail I'd? +0
rproffitt 2,701 https://5calls.org Moderator

Looks fine to me. My experience is that blank lines and spaces at the end of line are ignored.

rproffitt 2,701 https://5calls.org Moderator

A CSV file as noted on the web (example at https://www.howtogeek.com/348960/what-is-a-csv-file-and-how-do-i-open-it/ ) does not host images.

As such, you can't extract and save images. Maybe you are thinking about URL image links but you only asked about CSV files.

rproffitt 2,701 https://5calls.org Moderator

I don't see your code but the good news is Tic-Tac-Toe has 65 solutions at https://rosettacode.org/wiki/Tic-tac-toe

Maybe you can see if there's a nice algorithm there.

rproffitt 2,701 https://5calls.org Moderator

This is either a homework or workplace assignment. For homework, tell us where you are stuck in your design or code.
For workplace assignments supply a full RFQ along with the pay for the work.

rproffitt 2,701 https://5calls.org Moderator

18 rows would indeed cause the origianal top post to do the password is incorrect if that was the result.
But we want to see the number of rows at line 30 in your original code (top post.)

cosmo13 commented: No sorry it prints 18 rows +0
rproffitt 2,701 https://5calls.org Moderator

Which line do you feel is failing?

I'd print the result out as noted at https://www.w3schools.com/php/func_mysqli_num_rows.asp to see what is going on. It could be correct behavior if there is more than one match in the database.

Beyond that this code appears to store passwords in a database (never do that!) and looks to be exploitable with injections.
That's two big strikes against this code and if it was submitted at work or in a classroom it would be rejected then we begin again to discuss both of those topics.

cosmo13 commented: I tried the code from the link and it works fine. +0
rproffitt 2,701 https://5calls.org Moderator

I'll skip reading over 100 lines and noted this from the past.

Read https://www.daniweb.com/programming/software-development/threads/66698/exit-a-tkinter-gui-program

mangle200 commented: this doesnt work when i try to use it in a tkinter where i used dictionaries +0
rproffitt 2,701 https://5calls.org Moderator

I'm sharing from my experience. The reason to upgrade from Vista or W7 is to get that free W10 license. Once that is done, and this is not only me sharing this, you can clean install 32 or 64 bit W10 as the license is for W10 and not about the 32/64 bit question.

As to 2GB we install the 64 bit version and it is no slower than the 32 bit OS. This has been tested so many times. There's no reason for a 32 bit OS on this PC so far.

I could write more but my advice is:

  1. Get out the canned air and give the vents and heatsinks a good cleaning.
  2. If there is any sign of CPU overheating, replace the CPU heatsink compound. It's old enough that it has dried and cracked.
  3. Clean install W10 64 bit and test.
rproffitt 2,701 https://5calls.org Moderator

Note: Similar/same at https://community.acer.com/en/discussion/629753/gateway-p-6822-finding-correct-bios-upgrade

This looks to be some Core2Duo laptop and I have CLEAN INSTALLED W10 on such before. But this is old enough to have issues with cooling which is what I find to be the main cause of a BSOD after memory and then other issues.

Your question is best put to an Acer forum which you did but in this class of PCs I have never found the BIOS update to help as the machine usually had BSODs when it came in so it's not a W10 issue at all (or BIOS.)

-> I see you UPGRADED from Vista to 10 so after you have your W10 activated you can clean install W10 64 Bit to bring it current and avoid months of troubleshooting why it BSODs if it is a software issue.

rproffitt 2,701 https://5calls.org Moderator

I looked at the API and don't see an obvious solution. But you should ask this in Etherscan forums found at https://etherscan.io/directory/News_And_Forums/Forums

rproffitt 2,701 https://5calls.org Moderator

You left out what happens with your code as is. If the file did not play I add a print statement just before the play statement so I can check out if I got the filename correct. If the filename is good then I print if the file exists to further debug.

Remember, I don't see much from you about error messages or what happens so far.

mangle200 commented: its not that it gives an error its only that the audio doesn't play +0
rproffitt 2,701 https://5calls.org Moderator

I am not a TK person but on line 27 you have this variable "song" but I can't tell how it's value is set which leads me to ask how that is being set.

mangle200 commented: its in def __init__ and in SITUATIONS +0
rproffitt 2,701 https://5calls.org Moderator

Let's begin with there is no ready to use app. As you are posting on a Software Development Forum this means you intend to write this.

That said, I would not write this in c, c++, java or use microsoft-access. I would turn to Python.

Also noteworthy is your app could be contrued to be an attempt to hack accounts. Be careful here to not make others think that.

Here's some priors about using Python to log into websites: https://www.google.com/search?&q=python+log+into+website

That would be the first step in developing your full blown app.

PS. I'm going to warn you off about continuously doing this as some sites are smart about this and will consider continuous logins to be a sign of an attack and shut down that account.

Royvip commented: can you do me a software like that, i'm in vietnam websites in vietnam are not smart enough as you say +0
rproffitt 2,701 https://5calls.org Moderator

It looks like your code needs a rewrite as to lines 28 to 32 (tr and td versus th). (Not an offer to rewrite your code.)

The tutorial about table, tr, th and td is at https://www.w3schools.com/tags/tag_table.asp

So after line 27 you would use tr and then your td (data) and then close the tr (/tr) after line 32.

Hints:

  1. th = table header.
  2. tr = table row.
  3. td = table data.

TL;DR: The table has no data rows.

rproffitt 2,701 https://5calls.org Moderator
anas_abuhajar commented: it's good but i have many algorithms is this website going to help me? +0
rproffitt 2,701 https://5calls.org Moderator

That's for you to write. Remember this is your assignment so let's see what you have so far along with where/what stopped you.

For example I would find it hard to believe you can't write the part about displaying the menu. Output of text is usually in the first few weeks.

rproffitt 2,701 https://5calls.org Moderator

Let's see your work so far as well as you telling us where you are stuck. If you need to outsource this work, tell how much you are paying.

rproffitt 2,701 https://5calls.org Moderator

Please show your work so far but more importantly where or what has stopped you from completing your assignment.

mahmoud_37 commented: i can't do it could you help me to make this adrees book ? +0
rproffitt 2,701 https://5calls.org Moderator

PS. Remember that beyond my comment about Try+Catch you may have other issues to think about such as:

  1. Textbox and numbers. To put a number in a textbox you have to turn it back into a string. Example: TextBox.Text = somevariable.ToString
  2. Access of objects on other forms or in your case Tabs. To address this I asked you to perform a simple test with TextBox3.Text = TextBox1.Text so I can address that on its own.
vplay41 commented: Value from textBox3 = textBox4. textBox3 it is in tabPage1, textBox4 it is in tabPage2. TK +0
M.Lingo commented: Is this the Robert Proffitt who use to be a submarine captain? +0
rproffitt 2,701 https://5calls.org Moderator

I read your post twice and wonder if you are telling us of your site problems or something else. Then I found https://www.behance.net/marilubray and it seems you are attempting to share what you think are common problems with some sites.

I suggest you work up a tutorial next time so it's clear what you are writing about.

rproffitt 2,701 https://5calls.org Moderator

Keeping in mind all the prior discussions about this I will not duplicate that here.

In short, look at "Offline, Desktop" at https://wiki.apertium.org/wiki/Installation

Saboor880 commented: apertium has two problems. I ran it and downloaded one language pair. After that when I clicked on Run button, following error occured: +3
rproffitt 2,701 https://5calls.org Moderator

@vplay. I can't because I don't have your app in the IDE to be sure of the exact syntax. But as I did note, the if statements are gone if you use Try/Catch. Simpler code for you to work on.

vplay41 commented: Thk for yours time. In c# is possible? PLEASE! +0
rproffitt 2,701 https://5calls.org Moderator

Why bother with those two IF lines. Just TextBox3.Text = CDbl(TextBox1.Text) + CDbl(TextBox2.Text) but wrap this with Try/Catch, as we read at:
https://www.tutorialspoint.com/vb.net/vb.net_exception_handling.htm

vplay41 commented: A happy new year in 2021. Thanks for the reply. Please can you tell me the code for TabPage2. +0
rproffitt 2,701 https://5calls.org Moderator

As to VB6: how we get more speed on Graphics? my answer has two answers.

  1. Move to another dev system.
  2. Consider that graphics speed is not always possible if the host PC does not have dedicated graphics.

Furthermore VB6 is a legacy system. This is no expectation it will leverage what a modern PC has. Yet you will encounter crusty demanding older developers that will insist it "should have" or "should use" the GPU and more. Best to nod and let them be.

Your other post is actually more on point about speed but I neglected to write about testing if that's the speed bottleneck (the loops and the U and L bound calls.) I don't do this work for others but at work I had to profile our app to determine where the bottlenecks were so we knew where to look for the optimizing.

How do you know the U and L bound calls are the speed hits here and not the more usual areas? Did you profile and measure the times spent on each operation?

PS. If the discussion title is changed I must remove some of my answers as they would no longer apply. My vote is to leave the title as-is. My suggestion is that you work on your other post where the code was revealed as well as discuss and reveal what the host PC looks like. Sometimes I've run into developers that are on decade plus old dual core PCs with onboard …

rproffitt 2,701 https://5calls.org Moderator

No. Why? First we don't know what credentials looks like in line 1.
Second, this looks like homework or an assignment. Here you show your work and tell why you think it fails.
If you are looking to pay for work on apps, then you would have to state that plus the rate and more just like you do on fiverr.

rproffitt 2,701 https://5calls.org Moderator

That sounds like your homework. Try sharing what you have so far and what you think is broken.

Nikita_14 commented: import wx class my_window(wx.Frame): def __init__(self, parent, id): #error __int__ wx.Frame.__init__(self,parent,id,' Search', size=(30 +0
rproffitt 2,701 https://5calls.org Moderator

By redesigning your app to stay inside the limits. It's programming knowledge that you can't change a single signed 16 bit integer to be greater than 32767 but you could use two 16 bit signed integers to extend the mythical apps range. Same here. You break up your database so data into more files which don't exceed the limits yet let's you continue with QB45.

Or you move to another language/dev-system.

Why isn't a look at QB64 worth your time?

PS. I did not find documentation to confirm if QB64 extended this area. I leave that to you and the QB64 authors and their forums. I find it nice there is an alternative but documentation is a little lacking as is usual with such things.

paydata commented: BTW: I'm not sure how I answered you the first time I need help! Newbe! +0
rproffitt 2,701 https://5calls.org Moderator

That clears up why/what you are asking along with me reading https://www.vbforums.com/showthread.php?889830-VB6-how-can-i-speed-up-my-draw-pixel-function-DIB-s

As UBound() I only see it called one time at line 49 so it's one call and unless we measure I'll write that's to be left as-is.
But in the For loop from line 49 to about 90? we see UBound() inside the loop and IF (I take your word it's big overhead here) that is so, I would use:
xboundvariable = UBound(DrawPixelPoints) - 1 just before line 49 so line 59 could be:
For x = 0 To xboundvariable

Remember I did not read this code multiple times. Some fault me here but it's Christmas Eve, our dog passed a day ago and other things are going on. Some say I shouldn't try under such conditions but try I will.

To wit, a very optimizing compiler might do such optimizing for us but hey, it's VB6 and not GCC.

With that out of the way, I think I see every pixel being handled so that's a lot of time in loops and more. I can't quite reverse engineer what this code is doing so I can't connect it to some possible API call that would (usually) best your own code. Let me elaborate with a bad example.

We need a line drawn through a bitmap. We can either slog through the bitmap and set bits as need be. Or we paint the bitmap onto the screen area then draw a line on top. Back then the …

rproffitt 2,701 https://5calls.org Moderator

Let me comment it's been over a decade since I tried a DirectX library for Visual Basic 6 BUT it did help. I bought said library, book and CD at some technical book store sometime in the years 2000 to 2005. I can't recall what it's title was but it did tap what juice DirectX could offer and was 10 to 100 times faster than raw VB6.

Other thoughts.

  1. DirectX tutorials are out there such as https://gamedev.net/forums/topic/430026-directx-with-visual-basic-6/430026/
  2. If a code area is slow, I used my thoughts about how things work. That is, if I need the array size then I precompute that outside the heavy loops.
  3. If sin() and cos() are used I would precompute a lookup table. However I don't do that on PCs anymore since most PCs are GHz and more so the speed payoff isn't as much as it used to be. Story time: This was back in the 1990's and folk were impressed with this trick's performance boost which was on the order of 100 times.
  4. If you are doing graphic work, demand a dedicated graphics card. No matter which Intel/AMD with onboard graphics, all were many times slower than dedicated graphics.
rproffitt 2,701 https://5calls.org Moderator

I'm going to write you may have left out why you are not using UBound() and LBound(). Maybe the array is uninitialized but you failed to reveal that and this is your real question about how to handle that.

Read https://www.daniweb.com/programming/software-development/threads/233842/try-catch-feature-for-vb6-vba-vbscript where the On Error is mentioned along with a Try Catch solution to handle a failed U or L Bound().

rproffitt 2,701 https://5calls.org Moderator

This just in. https://www.commondreams.org/news/2020/12/21/atrocious-congress-crams-language-criminalize-online-streaming-meme-sharing-5500#

It appears the rules are changing.

As The Verge's Makena Kelly reported:

The CASE Act would create a quasi-judicial tribunal of "Copyright Claims Officers" who would work to resolve infringement claims. As outlined in the bill, copyright holders could be awarded up to $30,000 if they find their creative work being shared online.

rproffitt 2,701 https://5calls.org Moderator

That's a tough one because many images have copyright issues so you have to pay for some rights (along with the images) or build your own. I know folk that just scraped the webs for such images only to learn later with a takedown order from the image owners.

Here's a nod to https://www.google.com/search?&q=open+source+car+images but be sure to read the usage limitations when you look at these.

rproffitt 2,701 https://5calls.org Moderator

There is no close button noted at https://www.tutorialspoint.com/wxpython/wx_dialog_class.htm
Either that or you meant only that top right X? I can't tell from your post.

Given only what you wrote so far I am guessing you want no buttons at all. Try:
wx.MessageBox('Nothing to see here.', ' ',0)

rproffitt 2,701 https://5calls.org Moderator

I don't see your followup question here. What I got via email was:

what does the compiler do with images, files and sound fragments. Do they come in a separate file and are installed on the client pc?

There are many tutorials on this so I'll note http://www.csharp411.com/embedded-image-resources/ which is one place the resource could be. There's code to test if it's in that area. I'll also note in passing tools that let us explore the usual EXE and DLL files.
https://www.mitec.cz/exe.html
http://www.pe-explorer.com/

I'm sticking with my short answer here that such is "compiled into" the app's EXE and DLL files. That said a commercial app I did long ago externalized the resources so the company could change the logo bitmap without having to edit the EXE or DLL or contracting me to issue a new version of the app. Again, this goes beyond my short answer so I pause here.

andre.jonker commented: thank you for your answer and tutorails, now everything is clear +0
rproffitt 2,701 https://5calls.org Moderator

The resources are compiled into the app if we are talking about the usual Visual Studio C# system.